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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Compare same value in different periods

Hi Power BI Community!

I want to show this data in a bar chart:
Date Period: 29.07.2021

Beginner_2020_0-1627538482074.png

Date Period: 29.06.2021

Beginner_2020_1-1627538519512.png


I tried with this measure:

Spare Parts Last month = CALCULATE([Spare Order Backlog False],
PARALLELPERIOD(Dates[Date], -1, MONTH))

Beginner_2020_2-1627538892442.png


This does not show the desired dates in the table - just last month






 

 

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous ,

 

Which one is the desired out put? And why the value for June is different in these two tables?

Can you provide some sample data and the measure you are using to us?

 

Best Regards,

Jay

Anonymous
Not applicable

@Anonymous Thanks for the reply. 

To show the different process of the data in June is the point! 

The first table has the data filter on 29.07.21

The second table has the data filter on 29.06.21. 

I want to show the change in data (June on 29.07 = 6,53 %, June on 29.06 = 5,39 %

The measure is simple like that = Divide([Count false],[Count All]) 

Anonymous
Not applicable

Hi @Anonymous ,

 

Your current measure is to calculate the last month value.

But if you want to calculate the value from different periods, you will need to filter the table before the calculation.

 

Best Regards,

Jay

Anonymous
Not applicable

@Anonymous Thanks. I know this is not the right measure and you are right that I need to work with filter. But how can I integrated the filter of a relative date in my measure. Now I just use the sidebar Filter. I have two bars. One should be filtert the other not.  

amitchandak
Super User
Super User

@Anonymous , Try like

Spare Parts Last month = CALCULATE([Spare Order Backlog False],
dateadd(Dates[Date], -1, MONTH))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak I already tried: 

Beginner_2020_0-1627542000920.png


The solution could be using a visual filter with dates but in the measure?

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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