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.
Hi,
I want to create a DAX query for the below table
Model | Score |
A | 4 |
B | 3 |
C | 2 |
The query should calculate = Selected Model (Score) / Max(Score) *.4
Hence
For A = 4/4*.4
For B = 3/4*.4
For C = 2/4*.4
IS there a way to calculate the max on a column with specific model scores like above?
Thanks for the help
Solved! Go to Solution.
CalculatedColumn = 'Table'[Score]/MAX('Table'[Score]) * .4
Thanks for the solution.
I have used the above query with a slight change
Calculated Colum = 'Table'[Score]/calculate(MAX('Table'[Score], ALLSELECTED()))*0.4
This helps me with calculating the selected values and work with filters as well.
CalculatedColumn = 'Table'[Score]/MAX('Table'[Score]) * .4
Thanks for the solution.
I have used the above query with a slight change
Calculated Colum = 'Table'[Score]/calculate(MAX('Table'[Score], ALLSELECTED()))*0.4
This helps me with calculating the selected values and work with filters as well.
User | Count |
---|---|
15 | |
13 | |
9 | |
6 | |
6 |
User | Count |
---|---|
28 | |
18 | |
13 | |
9 | |
5 |