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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Martine10
Frequent Visitor

Ignore context within summarize DAX

I have a calculation where for all years I divide the value of a given year. This needs to be done at a group "sector" level. 

When I put the measure in a visual with the "sectors" in the legend of the visual, the calculation works fine:

Martine10_3-1655887063874.png

 

Martine10_4-1655887182585.png

 

 

However, now I want a visual with the total, so not showing the values per sector. To do this I thought it would be best to use a summarize function. 

 

However now the problem is that I am not able to get rid of the year context within the summarize function. I tried to use the crossfilter function with setting it to none. So the value is now only shown for the "given year"= 2000 (for 14 sectors):

Martine10_1-1655886664527.png

 

Martine10_0-1655886334741.png

 

Any help is much appreciated!

Thanks

1 REPLY 1
v-yanjiang-msft
Community Support
Community Support

Hi @Martine10 ,

Sorry maybe I'm not very clear about your problem, in my understanding, before you put the sector in the legend, now you want to show the total instead of per sector, can not directly remove the sector from the legend work?

Best Regards,
Community Support Team _ kalyj

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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