Built with blockbuilder.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Login-AzureRmAccount | |
$containerName = <<string containing container name>> | |
$storageContext = New-AzureStorageContext -ConnectionString <<connection string to storage account>> | |
$localDestinationPath = <<string containing file system path.>> | |
$blobPrefix = <<string containing prefix to search. wildcard character not needed after prefix.>> | |
#List | |
#Get-AzureStorageBlob -Context $storageContext -Container $containerName -Prefix $blobPrefix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Login-AzureRmAccount | |
$containerPrefix = <<string containing prefix to search. wildcard character not needed after prefix.>> | |
$storageContext = New-AzureStorageContext -ConnectionString <<connection string to storage account>> | |
Get-AzureStorageContainer -context $storageContext -prefix $containerPrefix | ForEach-Object {Remove-AzureStorageContainer -context $storageContext -Container $_.Name -Force} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Single measure version | |
% of Total = DIVIDE(SUM('Sales'[Revenue]), CALCULATE(SUM('Sales'[Revenue]), ALLSELECTED('Product'[Category]))) | |
//As traced in Power BI Quick Calc "% of Grand Total" | |
EVALUATE | |
TOPN( | |
1001, | |
SUMMARIZECOLUMNS( | |
'Product'[Category], | |
"M0", CALCULATE( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
double #map required for map to appear in FF,Edge,IE (and I have no idea why) | |
final map should appear as fixed 60% width | |
fixed for scrolling story pane | |
top 55px because it covers up the Export button in DevTools... | |
*/ | |
#map { | |
position:absolute; | |
top:20px; | |
bottom:0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTML Tooltip = "<img src='https://www.blue-granite.com/hs-fs/hub/257922/file-2333776730-png/IMG_2015/Blue-Granite-Logo.png' width='200px' /><br>" & | |
"<br>Reported: <em>" & Table1[OutageReported] & "</em>" & | |
"<br>Restoration Est: <em>" & Table1[RestorationEstimate] & "</em>" & | |
"<br><br><table bordercolor='#FFFFFF' cellspacing='8'><tr>" & | |
"<th style='color:#01B8AA;'>Customers Affected</th><th style='color:#01B8AA;'>Status</th></tr><tr>" & | |
"<td style='color:#" & IF(Table1[Number of Customers Affected] > 50,"DD0000","FFFFFF") & ";'>" & Table1[Number of Customers Affected] & "</td>" & | |
"<td>" & Table1[Status] & "</td></tr></table>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bing.sentiment <- syuzhet::get_sentiment(as.vector(dataset$Text), method="bing") | |
afinn.sentiment <- syuzhet::get_sentiment(as.vector(dataset$Text), method="afinn") | |
nrc.sentiment <- syuzhet::get_sentiment(as.vector(dataset$Text), method="nrc") | |
raw <- cbind(bing.sentiment, afinn.sentiment, nrc.sentiment) | |
scaled <- scale(raw, center=TRUE) | |
colnames(scaled) <- c("bing.scaled", "afinn.scaled", "nrc.scaled") | |
sentiment.output <- cbind(dataset, raw, scaled) |
Built with blockbuilder.org
NewerOlder