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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
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
Top Kudoed Authors