Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I'm trying to get PowerBI to do something with a formula that's a bit over my head, was hoping you'd be able to help:
I want to have a column in my file, which returns a value for a specific user, that is dependant on some other conditions. To make it clearer, I made the example file below.
I'd like to return the colour a user had, when they ordered the first time, to be returned in 'column wanted'.
So the formula would have to do the following things:
Match the user ID with the User ID in the row, and then confirm that first time = yes. For the value where this is true, it should return the colour in the 'column wanted'. So practically, in this example, all rows for 'User 2' would have 'Red' in the 'column wanted'.
Any help is much appreciated!
Solved! Go to Solution.
Hi @jeroenwmwillems ,
measure =
CALCULATE (
MAX ( table[Colour] ),
ALLEXCEPT ( table, table[USER] ),
table[First Time] = "Yes"
)
Try this.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Proud to be a Super User!
Hi @jeroenwmwillems ,
measure =
CALCULATE (
MAX ( table[Colour] ),
ALLEXCEPT ( table, table[USER] ),
table[First Time] = "Yes"
)
Try this.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Proud to be a Super User!
Thank you, you are welcome!
Proud to be a Super User!
Hi @jeroenwmwillems ,
Would you copy and paste the data instead of a picture, so we create a pbix? Thank you, Nathaniel
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
75 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |