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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
thomsontam
Frequent Visitor

Dynamic month report with versus prior month

Hi,

 

I could like to get a report like the following layout 

CustomerDec-20Jan-21Feb-21VPM
A12109-1
B1011121
C8990

 

I am able to use a dynamic month measure to get individual month and VPM calculate but I only managed to present using the following layout :

 Dec-20 Jan-21 Feb-21 
CustomerSalesVPMSalesVPMSalesVPM
A12 10-29-1
B10 111121
C8 9190

 

 

May I ask are there anyway I can write a DAX that can shows a report like the first layout?

Thanks!

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @thomsontam 

Please check the below picture and the sample pbix file's link down below.

I am not sure about how your whole data model looks like. But I want to suggest having an additional table for the new column that contains VPM. The measures are in the sample pbix file.

If it is OK with you, please share your sample pbix file, then I can try to come up with more relevant measures suggestions.

 

Picture3.png

 

https://www.dropbox.com/s/94nca2lwpklbxfz/Omar.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

 

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

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

 

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

5 REPLIES 5
Jihwan_Kim
Super User
Super User

Hi, @thomsontam 

Please check the below picture and the sample pbix file's link down below.

I am not sure about how your whole data model looks like. But I want to suggest having an additional table for the new column that contains VPM. The measures are in the sample pbix file.

If it is OK with you, please share your sample pbix file, then I can try to come up with more relevant measures suggestions.

 

Picture3.png

 

https://www.dropbox.com/s/94nca2lwpklbxfz/Omar.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

 

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

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

 

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Hi Kim,

 

Thanks for your reply, your output looks as same as what I am looking for, however, could you please reshare the file in DropBox? The file in dropbox looks difference then the picture shows above.

 

Thanks again!

 

Regards,

Thomson

Hi, @thomsontam 

Sorry, my mistake.

Please check the below link.

 

https://www.dropbox.com/s/9j1ycogucaeootu/thomson.pbix?dl=0 

 

 

Hi, My name is Jihwan Kim.

 

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

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

My data structure is very similar to yours, so I can adjust my table for it.

Only 1 thing I still try to do myself is the date range selection working on earlier period to last month. (any time up to April).  However, if I select From Dec 20 to Mar 21 then VPM not give the correct result.  
edit: I modify the DAX so I can get any 4 months period with the last one with VPM based on a Period selector.  Thanks for your help KIM, it really helps on my dashboard report!

 

Thanks for your help, I can use this method for my other monthly trend report which need the % of Grand total at the end! 

amitchandak
Super User
Super User

@thomsontam , seem like you need a hybrid table

if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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