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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Validate voids in columns with dates

Hello, I appreciate your great help to the following query:

I am making a formula to compare the gaps of three columns and that the result returns the value of any of the columns, but I am getting erroneous results.

Attached formula and image with formula.

UNION_FECHAS = SWITCH(TRUE(),
ISBLANK('SQVI@TD1'[SE16N])=TRUE(),
'SQVI@TD1'[MB25],
ISBLANK('SQVI@TD1'[MB25])=TRUE(),
'SQVI@TD1'[SQVI],
ISBLANK('SQVI@TD1'[SQVI])=TRUE(),
'SQVI@TD1'[SE16N])

JMOLLAN_0-1671846922367.png

1 ACCEPTED SOLUTION
bolfri
Solution Sage
Solution Sage

I think the logic here is wrong. I think you wanted to take that value if not blank.

 

 

UNION_FECHAS = 
SWITCH(TRUE(),
NOT(ISBLANK('SQVI@TD1'[SE16N])),'SQVI@TD1'[SE16N],
NOT(ISBLANK('SQVI@TD1'[MB25])),'SQVI@TD1'[MB25],
NOT(ISBLANK('SQVI@TD1'[SQVI])),'SQVI@TD1'[SQVI]
)

 

 

bolfri_0-1671847638213.png

Note that you need to change the order by yourself.

 

Your formula was: if the column is blank, give me that.

My formula is: if the columns is not blank, give me that. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Thanks a lot!!! Case solved.

bolfri
Solution Sage
Solution Sage

I think the logic here is wrong. I think you wanted to take that value if not blank.

 

 

UNION_FECHAS = 
SWITCH(TRUE(),
NOT(ISBLANK('SQVI@TD1'[SE16N])),'SQVI@TD1'[SE16N],
NOT(ISBLANK('SQVI@TD1'[MB25])),'SQVI@TD1'[MB25],
NOT(ISBLANK('SQVI@TD1'[SQVI])),'SQVI@TD1'[SQVI]
)

 

 

bolfri_0-1671847638213.png

Note that you need to change the order by yourself.

 

Your formula was: if the column is blank, give me that.

My formula is: if the columns is not blank, give me that. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.