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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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