- 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

Need help with Sum of the lowest cost option
I have 4 DAX measures that calculate the cost for that option for each user. Lets call them License1, License2, License3, License4
They all work correctly and sum for all users, etc.
I need to calculate what the lowest cost option is for each user (email), then also have a columm total that is the SUM of the lowest cost option for each user. I used SWITCH to return the lowest cost option and it works, but does not sum.... I am not tied to using SWITCH though
Thanks for your help in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I'm going to assume that you have some kinda table with a column for all the users.
If so, then something like the following might work:
Total Min Cost =
var minCostPerUser = ADDCOLUMNS(VALUES(UserTable[UserEmail]),
"minCost", CALCULATE(MIN(MIN(MIN([License1],[License2]),[License3]),[License4]))
)
RETURN SUMX(minCostPerUser, "minCost")
You can post a sample of your data (i.e create a table) and someone else can tag in if my solution isn't what you're looking for
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I'm going to assume that you have some kinda table with a column for all the users.
If so, then something like the following might work:
Total Min Cost =
var minCostPerUser = ADDCOLUMNS(VALUES(UserTable[UserEmail]),
"minCost", CALCULATE(MIN(MIN(MIN([License1],[License2]),[License3]),[License4]))
)
RETURN SUMX(minCostPerUser, "minCost")
You can post a sample of your data (i.e create a table) and someone else can tag in if my solution isn't what you're looking for

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
03-14-2023 09:23 AM | |||
04-29-2024 03:37 PM | |||
05-19-2024 03:09 AM | |||
05-15-2024 01:05 AM | |||
12-11-2024 06:48 AM |
User | Count |
---|---|
97 | |
90 | |
85 | |
56 | |
51 |