Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi
I'm trying to combine an if statement with a max date. So if a value in a cell in 0 then retrieve the max date from several cells.
I tried the below but got an error as i dont think it like the combination of statements. Is there a way of doing this?
IF Column X = 0 then List.Max({[#"Column a"]}&{[#"Column b"]}&{[#"column c"]}) else null
Thanks
Solved! Go to Solution.
Please try this instead...
each if [Column X] = 0 then List.Max({[Column A], [Column B],[Column C]}) else null
If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.
Proud to be a Microsoft Fabric Super User
@Circuscazz Please review the solution and click Accept as Solution if this answered your question. Thanks!
If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.
Proud to be a Microsoft Fabric Super User
Please try this instead...
each if [Column X] = 0 then List.Max({[Column A], [Column B],[Column C]}) else null
If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.
Proud to be a Microsoft Fabric Super User
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
27 | |
26 | |
23 | |
12 | |
10 |
User | Count |
---|---|
25 | |
21 | |
19 | |
19 | |
11 |