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

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.

Reply
hemamaleni
Helper I
Helper I

YoY not showing values

YoY not showing the data. It is a very simple file yet I am unable to get the desired output 😞YOY_picture.png

6 REPLIES 6
v-rongtiep-msft
Community Support
Community Support

Hi @hemamaleni ,

Please have a try.

Create a measure.

Measure = CALCULATE(SUM(Table_A[amount]),FILTER(ALL(Table_D),Table_D[year]=SELECTEDVALUE(Table_D[year])-1))

vpollymsft_0-1675750208738.png

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hemamaleni
Helper I
Helper I

I was able to do it after I set my calendar table to 'mark as date table' under 'table tools' options. But in my real project I have production year and calendar year. I need to use production year which offsets the amount a little, since the 12/31/2022 would be considered as production year 2023 instead of 2022.

hemamaleni
Helper I
Helper I

If I change the Value from 0 to -1, it doesn't show any data. 

hemamaleni_0-1675290877549.png

 

 

 

Padycosmos
Solution Sage
Solution Sage

Hope this helps:

Padycosmos_0-1675289429175.png

 

Please check and let me what I am doing wrong. D table is Calendar. Should I use that or A table which is fact.

YOY_picture1.PNG

It appears that there is no built-in date calendar for the c-date column from where you have to select c_date.[date]. To enable a built in Date calendar, you can do the following

File >> Options & Settings>> Options >> Global >> DataLoad>>  Tick the box below Time Intelligence

 

Padycosmos_1-1675293185401.png

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.