Forum Discussion
Cumulative measures does not show value when filter is not selected.
Hi there,
I have a column in the Fact table called ' 30 Mins Normalized Value'. I created a measure that calculates the sum of [30 Mins Normalized Value] as follow:
The expected output is Cumulative Normalised value only display value for April and last year Cumulative measure show value of all 12 months. When I clicked on RY21 (i.e. last regulatory year) filter then it shows the value as shown in the picture:
Now, last year cumulative value shows all 12 months' value but the current cumulative normalized value measure does not show any value.
Expected Output: when there is no filter on RY selected, both measures should display the values. [Last year cumulative normalized value] shows value for all 12 months and [Current Cumulative Normalized Value] should show the value of only April. Could anyone guide me where am I making the mistake?
Sample file can be download from here
Hi Dunner2020 ,
Could you pls check whether your date table is a contiguous date table?As tested here,it works fine:
Would you pls check my .pbix file and advise me whether it is what you need?
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
3 Replies
- amitchandak
Super User
Dunner2020 , Can you try datesytd with Date table like
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"3/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"3/31"))where 3/31 in an indicator where year-end to set up the start date for ytd.
Creating Financial Calendar - From Any Month
https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calendar-1-5-Power/ba-p/1187441Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA - v-kelly-msft
Community Support
Hi Dunner2020 ,
Could you pls check whether your date table is a contiguous date table?As tested here,it works fine:
Would you pls check my .pbix file and advise me whether it is what you need?
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
- v-kelly-msft
Community Support
Hi Dunner2020 ,
Is your solved now?If not,could you pls check my last reply?
Best Regards,
KellyDid I answer your question? Mark my post as a solution!