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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors