Forum Discussion
New Measure = Today's data compared to the average
- 9 years ago
Please review this PBIX. I'm sure that can help you.
https://drive.google.com/file/d/0B95C8CKdTZE3NXpVSEdEZ2tPLVk/view?usp=sharing
Regards
Victor
Lima-Peru
Thank you and this will work, but as time goes on, the graph will loose a lot of its eye popping affect. I will use this as another dashboard if someone wants to drill into the details more, but I am not expecting these guys to do this. I am initially just trying to provide a very simple visual (pictures are worth a thousand words). Below is not coming from the same data, as it does not work right, but gives an idea about what I am trying to display. A barchart or any other graph works, but it would only be two bars. (avg and today)
Almost an average day.
I am looking to just click refresh and it captures the last day on data. And I understand that the average wil adjust over time.
Thanks, DaveC123
To do this you can create a calculated column like this:
Current Day =
IF ( 'Data'[Date] = CALCULATE ( MAX ( 'Data'[Date] ), ALL ( 'Data' ) ), 1, 0 )
Then you can either filter the report using this column or filter the report. When you add new data the flag will automatically update to the latest day.
I have updated the link to sample dashboard
- DaveC1239 years agoFrequent Visitor
This is a great formula. So now the 1 moves as the days data gets filled in. But, I am stuck trying to still have that days data captured for use on a chart or as a "new measure". The chart value shows "1". I do not know how to write DAX, obviously, but was thinking something like this in order to create a "new measure": ?
Todays SO = If('PowerBI Data Table'[Current Day],1,then('PowerBI Data Table'[Sales Orders] Column D)
I was hoping this would pickup that cell which has todays Sales Order number. In the earlier table; 51
- Vvelarde9 years agoCommunity Champion
Please review this PBIX. I'm sure that can help you.
https://drive.google.com/file/d/0B95C8CKdTZE3NXpVSEdEZ2tPLVk/view?usp=sharing
Regards
Victor
Lima-Peru
- OpenDataLab9 years agoHelper II
Dave C123 please take a look at the sample workbook I provided, this will show you how to use the flag.
You can use it as either a report, page or visual filter. I have set it up as a visual filter on the sample.
This then allows you to see all the history on the other graphs on the report, whilst the bars chart (or other visual) show just the current day.