March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi guys,
I'm trying to write a measure that will only show the staff customers in the table without the need for a slicer or visual filter.
I have a measure that kind of works but it still shows the customers who are not staff when I want them excluded:
My current measure is below:
Solved! Go to Solution.
No problem at all.
I was just asked by my manager to try that as he wants them to just be able to see the data they're looking for straight away without having to have to use filters but maybe slicers will have to do.
Thanks for your help all the same!
gbarr12345,
Add a filter to the visual/page for [STAFF Customers] > 0.
----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)
P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.
Proud to be a Super User! | |
How would I add the filter code to my current code would you know?
gbarr12345,
When I say add a filter to the visual/page for [STAFF Customers] > 0, I am not referring to your measure; I am referring to the filter pane on the right.
----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)
P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.
Proud to be a Super User! | |
Oh yeah, I know I can do that but my company are looking to add this filter within the measure to make it easier for the end user.
Is it possible to add a rule within the measure without the need to alter that filter pane?
gbarr12345,
Maybe I lack imagination but I don't see how that makes it easier for the end user than you applying the filter as the report builder. In any case, I don't believe you can use a measure alone to return fewer rows - unless you add that filter condition to every other measure in the visual........ but at that point, I don't see why it would be better than adding the filter in the filter pane.
----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)
P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.
Proud to be a Super User! | |
No problem at all.
I was just asked by my manager to try that as he wants them to just be able to see the data they're looking for straight away without having to have to use filters but maybe slicers will have to do.
Thanks for your help all the same!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |