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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
New Member

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
New Member

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.