Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hey!
I am trying to visualize yearly change of the value. I encountered one problem, everything works fine until I get to the 2018. I've got missing data from April 2018 and it keeps on lowering my yearly change because the data is summarising whole year. Please have a look at the code first:
here you can find how my calculations are done and the matrix shows the results for each month, unfortunatelly the card summarises it all and prints the summary for all year, regardless from its availability. I would also like ot make it flexible, as soon as i manage to fetch new data, I would like it to adjust.
I tried various methods like trying to filter max(month) od max(date) although neither of the ways worked, hope you can suggest me something.
Thanks 🙂
Hi @Adrianna
Do you have a date dimension? If you do then create a column in the date dimension like
FutureDay = if([Date]>date(year(now()),month(now()),day(now())) ,1,0)
Then Set a Page/Visual/Report filter to set this parameter to filter only 0.
Not sure if it will work if you add this to your KNF table, I don't see why not.
The problem is that such dates do not figue in my dataset - they are created as a calculation while I refer to the dates from the previous year 😞
I encounter similar situations frequently, and my pattern is to always create a measure which I call Pivot Date. Pivot Date contains the latest date of historical data. Use whatever logic you need to arrive at this date. Then you can use a statement like min(pivot date, max(date dimension)) to filter your dates to the proper cutoff. This will work properly for prior and current years.
Pivot Date is very handy for doing prior period to-date calculations or if you're doing forecasting and need future dates in your calendar but also need to keep track of the cutoff of historical actuals.
Thank you @dani0010 🙂
I've tried: Pivot_Date = max('KNF'[Date])
and applied it here:
Although it doesn't seem to work. Would you mind sharing a way to implement it? So that I will get the main idea of using it?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |