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

Create a barchart with Dynamically Compare the Value of Two Periods

I follow the step to reappear the measuer from below link.

https://community.powerbi.com/t5/Community-Blog/Dynamically-Compare-the-Value-of-Two-Periods/ba-p/15...

 

And I want to put the measure into a barchart to realize multiple periods comparison base on day to day.

 

ex.

period-1   2022/10/31~2022/11/1

period-2.  2021/11/9~2021/11/10

 

2022/10/31 vs. 2021/11/19

2022/11/1 vs. 2021/11/10

 

How can I let two period start on those first date, and can be visualize in the mutiple bar chart?

 

 

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @ronhs 

Hello This measure is only used to compare sales differences between two date slicers. The x-axis of the bar chart cannot be selected in the same way as a slicer, and placing the measure will fail.

Bar charts are primarily used to show daily trends, and cannot show comparisons of interval dates based on this measure.

If you want to compre the special date period  , you can cretae a table and create another measure to realize it , it cannot be dynamic.

 

Best Regards,

Aniya Zhang

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

View solution in original post

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @ronhs 

Hello This measure is only used to compare sales differences between two date slicers. The x-axis of the bar chart cannot be selected in the same way as a slicer, and placing the measure will fail.

Bar charts are primarily used to show daily trends, and cannot show comparisons of interval dates based on this measure.

If you want to compre the special date period  , you can cretae a table and create another measure to realize it , it cannot be dynamic.

 

Best Regards,

Aniya Zhang

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

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.