March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All,
I need help in building a logic in DAX.
I have below data.
Key | Circuit | In | Out |
A | A1 | 2 | 4 |
A | A2 | 7 | 4 |
B | B1 | 1 | 2 |
B | B2 | 6 | 3 |
B | B3 | 3 | 6 |
I want to build below table at UI. I can't create calculated max_in_out column in backend because I am using what if parameter to modify In and out value on user input.What if parameter value can not be used in calculated column. So need to calculate max_in_out and Sum as measure.
Key | Circuit | Max_In_Out | Sum of Max |
A | A1 | 4 | 11 |
A | A2 | 7 | 11 |
B | B1 | 2 | 14 |
B | B2 | 6 | 14 |
B | B3 | 6 | 14 |
Thanks & Regards
Vaishali Rathi
Solved! Go to Solution.
Hi @Vaishali04 ,
Incase you donot want to create a column
Create 2 measures
Hi @Vaishali04 ,
Create a Column
MAX_IN_OUT = IF('Table'[In] >='Table'[Out] , 'Table'[In] , 'Table'[Out])
Create a measure
Measure = SUMX(FILTER(ALL('Table'),'Table'[Key] = MAX('Table'[Key])),'Table'[MAX_IN_OUT])
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Hi @Vaishali04 ,
Incase you donot want to create a column
Create 2 measures
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
12 | |
9 | |
7 |
User | Count |
---|---|
38 | |
32 | |
25 | |
12 | |
11 |