Forum Discussion
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]))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
2 Replies
- v-lili6-msftCommunity 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
- AnonymousNot 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/