Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |