- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sum of Max data in measure
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Vaishali04 ,
Incase you donot want to create a column
Create 2 measures
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Vaishali04 ,
Incase you donot want to create a column
Create 2 measures
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
Anonymous
| 08-13-2023 04:37 AM | ||
04-06-2024 10:39 AM | |||
04-15-2024 11:20 AM | |||
12-05-2017 08:53 PM | |||
Anonymous
| 07-12-2024 07:46 AM |
User | Count |
---|---|
24 | |
12 | |
11 | |
10 | |
9 |
User | Count |
---|---|
18 | |
14 | |
13 | |
12 | |
10 |