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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Comparing dates, current year months with 2019 same months

I have monthly data from few years and i need to compare this years months with selected year for e.g. 
2023/1 with 2019/1
and so on until i reach the maximum months that i have of current year, right now i have until 2023 august

7 REPLIES 7
Anonymous
Not applicable

in your pbi result is 

Zygis123_0-1699854230034.png

when i put my data in i get 

Zygis123_1-1699854257960.png


you get 8 months i get 12

 

pls try this code

Screenshot_6.png

Ahmedx
Super User
Super User

pls try

 

Anonymous
Not applicable

Zygis123_0-1699849240090.png

how does it work? if i select sales and months should it be all 12? sales is just sum(data[value]) why it calculates just the 8?

Is this what you are looking for?

Screenshot_2.png

Anonymous
Not applicable

Zygis123_0-1699853685558.png

i get the right year but too many months

 

 

what do many months mean?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors