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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Treatas Function summing additional values

Hi Experts

 

I have the followin g DAX formula which works fine were i have no relationship between the Forecast Table and the product tables - how ever the DAX formula is also suming values that i want to exclude...i also wan to pull franchise which are ABC

 

RH Net Sales @ AOP Rate BM - NOE = CALCULATE([Net Sales @ AOP Rate BM - NOE], 
   TREATAS(SUMMARIZE('Reporting Hierarchy 2', 'Reporting Hierarchy 2'[Level4_Name], 'Reporting Hierarchy 2'[Level5_Name], 'Reporting Hierarchy 2'[Franchise Desc], 'Reporting Hierarchy 2'[Category Desc]),
            Management[Level4], Management[Level5], 'Product'[Product Franchise], 'Product'[Category]))
1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

HI, @Anonymous

Sample data would help tremendously. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

And if you don't want to summary the values, add a conditional that franchise which are ABC in SUMMARIZE funtion.

 

Best Regards,

Lin

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

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

HI, @Anonymous

Sample data would help tremendously. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

And if you don't want to summary the values, add a conditional that franchise which are ABC in SUMMARIZE funtion.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

HI Lin

 

Thanks for the feedback and effort in looking at my question. can you kindly share a link i found which resolved my question so other memeber of the community can benefit too:

 

link: https://exceleratorbi.com.au/virtual-filters-using-treatas/

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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