Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Circuscazz
New Member

If statement combined with a max date

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

1 ACCEPTED SOLUTION
jennratten
Super User
Super User

Please try this instead... 

each if [Column X] = 0 then List.Max({[Column A], [Column B],[Column C]}) else null

View solution in original post

2 REPLIES 2
jennratten
Super User
Super User

@Circuscazz Please review the solution and click Accept as Solution if this answered your question.  Thanks!

jennratten
Super User
Super User

Please try this instead... 

each if [Column X] = 0 then List.Max({[Column A], [Column B],[Column C]}) else null

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors