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
Anonymous
Not applicable

Dax

Hello!

 

I have a random request with Power BI that I am working on. I am creating a bar graph but I need to show the volume from the previous month on the current month.

Below you see March has 843 and February has 527 and 679 for Jan. 

I want the visual to show Aprils volume for Match which would be 700. So March would be 700 instead of 843. 

February will be 679 instead of 527 and Jan will be 527 instead of 843. 

 

Is there a way to do this as a measure?

 

Csmith31_0-1634312269464.png

 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

If you have a date table, you can use:

Previous month value = CALCULATE (Your volume measure], DATEADD(Date table [Date], -1, MONTH))





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

2 REPLIES 2
v-xiaoyan-msft
Community Support
Community Support

Hi @Anonymous ,

 

Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thank you very much for your kind cooperation!

 

Hope it helps,


Community Support Team _ Caitlyn

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

PaulDBrown
Community Champion
Community Champion

If you have a date table, you can use:

Previous month value = CALCULATE (Your volume measure], DATEADD(Date table [Date], -1, MONTH))





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






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.