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 August 31st. Request your voucher.
Weird issue, but i a sure simple solution. Note: I am a QLik guy, learning DAX
Creating New Measure in report view:
Example Goal: Trying to create if statement based on field value:
However after my "TESTMEASURE= if("
i cannot reference a table or field, just measures or other DAX commands. So i cant state my condition.
I want to if fieldA ="Fixed" then X else Y but I can call field A
Thanks,
Bill
A measure is an aggregation, you should either use MIN, MAX, SUM etc to refer to that column.
Max(fieldA) will work.
If you want to calculate the value for each row in the table, then you should create "New column"
If it helps, mark it as a solution
Kudos are nice too
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
9 | |
7 |