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

All year data in bar chart

Hello Experts,

 

I have a filter on my page of year, but I wanted to show all year in the bar chart. So on the same page have other graphs which should respond on year filter , but bar chart should show all the years present in the data as 2020, 2021 and 2023 although if 2020 is slected in the year slicer.

Premium_Year = CALCULATE(CALCULATE([Sum_Premium]),REMOVEFILTERS(Final_Table[effective_date].[Year]))
I have tried this expression but did not work.
1 ACCEPTED SOLUTION
bhawanak
Regular Visitor

Try

CALCULATE(Table Name(measure you want),ALL(Year/Date field))

such as CALCULATE(Final_Table[Sum_Premium],ALL(Final_Table[effective_date]))

View solution in original post

1 REPLY 1
bhawanak
Regular Visitor

Try

CALCULATE(Table Name(measure you want),ALL(Year/Date field))

such as CALCULATE(Final_Table[Sum_Premium],ALL(Final_Table[effective_date]))

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.