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
Anonymous
Not applicable

ALL function issue

Hi,

 

I have state, category, subcategory and Sales. my table chart as below

 

category, Sales, SalesContribution

 

Sal: Calculate(SUM(Query1[Sales]))

 

SalesContribution=Calculate(Sal,ALL(Query1[category]))

 

I do have two slicers 1) state 2) subcategory

 

I have visual level filters category does not contain "other" and category TOP 10.

 

SalesContribution total is coming correctly for few selection in category slicer, but few other category selection the SalesContribution is not coming correctly. not sure what is the issue with ALL function. This is very simple but I felt some buy with ALL fuction.

 

Did anyone encountered the sale issue or any help would be great.

 

Thanks,
Thimma

4 REPLIES 4
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may check if ALLSELECTED works.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
LivioLanzo
Solution Sage
Solution Sage

Hi @Anonymous

 

can you show a visual example? maybe post an example of your data as well?

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Anonymous
Not applicable

Hi,

 

I have attached pbi file, it contains 2 charts which contains same fields. files available at the below location.

 

https://www.dropbox.com/s/hs8gca7ts1ih2ff/Test%20File.pbix?dl=0

 

Chart 1: All records

Chart 2: Only Top 10 records.

 

But Test 1 KPI value should be same in both charts, not sure why its getting changed when I apply Top 10.

 

This works well for few SubCat selection, but few getting mismatch. Is there any solution for this.

 

Thanks,
Thimma

Anonymous
Not applicable

Did anyone get a chance to look into the issue, surprised with the ALL function behaviour.

 

Thanks,

Thimma

 

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! Prices go up Feb. 11th.

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.