The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I am trying to create Dax calculated measure where I originally have two ranges to bring in as condition.
I was able to create Dax calcuated measure with both Min and Max range, but I would like to only use Max.
Here is an illustration:
I was able to use this DAX and it worked fine.
Measure =
CALCULATE(
VALUES(Star[Value]),
FILTER(
Star,
Star[Min] <= Sum(Test[Test])
&& Star[Max] >= SUM(Test[Test])
)
)
But, I would like to only use one column (Max) instead of using two columns (with Min).
So, this is what I am trying to envision.
MeasureNEW =
CALCULATE(
VALUES(Star[Value]),
FILTER(
Star,
Star[Max] >= MAX(Test[Test])
)
)
How do I accomplish it?
There is no such thing as "a calculated measure." There are measures or calculated columns/tables.
Thanks for correction. All new for me now 🙂
MeasureNEW =
CALCULATE(
MIN(Star[Value]),
FILTER(
Star,
Star[Max] >= MAX(Test[Test])
)
)
User | Count |
---|---|
14 | |
12 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
19 | |
13 | |
7 | |
5 |