Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I have a matrix on brand and country.
Now I want let the user choose If they want to see the generic cost. I prefer not to have a slicer with all the brands. (Generic is a brand in this case).
This is what I tried, but it gives me an empty matrix:
ReportFilter =
IF(HASONEVALUE(ReportFilters[ReportFilters]),
SWITCH(VALUES(ReportFilters[ReportFilters]),
"All", [Total AdwordsCost],
"All(eclusief Generic)", CALCULATE([Total AdwordsCost], FILTER('Brands','Brands'[Brand] <> "Generic"))
),Please help me out.
Solved! Go to Solution.
Hi @Anonymous,
Based on my test. Your formula worked well in my side. Also I create another measure to work on it, it worked well as well.
Measure = var sele = SELECTEDVALUE(ReportFilters[ReportFilters]) return IF(sele="All",[Total AdwordsCost],IF(sele="All(eclusief Generic)",CALCULATE(SUM(Brands[Column3]),FILTER(Brands,'Brands'[Brand] <> "Generic"))))
For more details ,please check the pbix as attached.
Regards,
Frank
Hi @Anonymous,
Could you please share your sample data and excepted reuslt to me. You can upload your files to one drive and share the link to me.
Regards,
Frank
Hi @Anonymous,
Based on my test. Your formula worked well in my side. Also I create another measure to work on it, it worked well as well.
Measure = var sele = SELECTEDVALUE(ReportFilters[ReportFilters]) return IF(sele="All",[Total AdwordsCost],IF(sele="All(eclusief Generic)",CALCULATE(SUM(Brands[Column3]),FILTER(Brands,'Brands'[Brand] <> "Generic"))))
For more details ,please check the pbix as attached.
Regards,
Frank
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 49 | |
| 37 | |
| 31 | |
| 30 |