Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Adrianna
Regular Visitor

Incomplete data for YoY%

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:

 

 

code2.PNG

Code1.PNG

 

hereresult1.PNG 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 🙂

4 REPLIES 4
gooranga1
Power Participant
Power Participant

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 😞

dani0010
Advocate II
Advocate II

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: 

 

code3.PNG

 

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? 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors