Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I was wondering if anyone has a way of using a selectedvalue from a field parmeter within a count measure. So, using a measure/varible rather than a column reference as an argument in the count(). Like the below:
Hi,
I have the same problem and have solved it with a Swithc function (but I guess there should be a more simple solution)
SWITCH (
SELECTEDVALUE ( Parameter[Parameter Fields] ),
"'DimOrganisation'[BU]", DISTINCTCOUNT(DimOrganisation[BU]),
"'DimOrganisation'[Company]", DISTINCTCOUNT(DimOrganisation[Company]),
..........
It would be really nice if the Parameter fields could be used "directly" in a measure.
Just to be currious, have you found a better way to do it?
Regards Niels
Not getting replies? Well, it's time to read this: How to Get Your Question Answered Quickly - Microsoft Power BI Community
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
10 | |
10 | |
9 | |
7 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |