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
scoder
Frequent Visitor

How to show this month total and last year month total as same row

I have some order tables (below is just a sample ) based on the I need to show few stats

Month order total_items Value PIN
2023-JAN123121000400012
2023-JAN124250400045
2023-JAN4565300500067
2023-FEB6523200408222
2022-JAN349500400045
2022-JAN45110500067
2022-FEB50260506675

 

I need to show(in matrix table chart) the last two months'  total items and their total value and along with the same month last year like below 

scoder_0-1697473463353.png

 

I can display the current two months but I am not sure how to show preYrcount and the value of same month in same row ? 

Please provide some direction to display this details in power bi?

 

NetCount : Total Item count of a month 

Netvlaue : Total value of a month 

PreYrCount : Total item count of the same month is last year. 

 

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file if it suits your requirement.

All measures are in the attached pbix file.

 

Jihwan_Kim_1-1697475012640.png

 

Jihwan_Kim_0-1697474998814.png

 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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.