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 everyone!
I'm trying to calculate a measure based on column groupings but unsure how to make it work when aggregated as currently I'm using MIN which won't be correct when aggregated.
IF( MIN([Grouping]) = "Include", IF( [Years] >=1, [logic if true], IF( MIN[Grouping) = "Exclude", IF( [Years >= 1, [logic if true], [logic if false]))
How can I make this work for the aggregated value?
The data is structured like this
Grouping | Value | Years |
Include | 123 | 1 |
Include | 345 | 1.4 |
Exclude | 123 | 5.3 |
Exclude | 857 | 2.3 |
Exclude | 123 | 6.5 |
Solved! Go to Solution.
@Anonymous , This type of formula should work
Switch( True() ,
Min([Grouping]) = "Include" && min([Years]) >=1, [logic if true] ,
MIN([Grouping]) = "Exclude" && min([Years]) >= 1 ,[logic if true] ,
[logic if false]
)
@Anonymous , This type of formula should work
Switch( True() ,
Min([Grouping]) = "Include" && min([Years]) >=1, [logic if true] ,
MIN([Grouping]) = "Exclude" && min([Years]) >= 1 ,[logic if true] ,
[logic if false]
)
Thanks!
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 |
---|---|
105 | |
96 | |
79 | |
67 | |
62 |
User | Count |
---|---|
137 | |
106 | |
104 | |
81 | |
63 |