cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors