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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
nlakshmi
Frequent Visitor

Conditional measure using a measure

Hello,

 

I need help to create a conditional measure from Quality OK column. The Quality OK column, the below table is a conditional measure based on a status column in the table - created as CALCULATE(COUNT(TP), STATUS = "OK"). Now, I need to create a new column in this table to show the MAX Date if Quality OK is not blank and "None" if it is blank. Also, Max Date is a measure on the date field in the table - created as MAX(Arrival Date).

 

nlakshmi_1-1675971607432.png

 

Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @nlakshmi,

AFIAK, current power bi does not support one field return multiple data types, you need to convert these values to text to use these different data type value at the same time.
You can try to use the following measure formula if suitable for your requirements:

formula =
IF ( [Quality OK] <> BLANK (), MAX ( Table[Max Date] ), BLANK () )

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
nlakshmi
Frequent Visitor

Thank you very much for the resolution

 

Anonymous
Not applicable

Hi @nlakshmi,

AFIAK, current power bi does not support one field return multiple data types, you need to convert these values to text to use these different data type value at the same time.
You can try to use the following measure formula if suitable for your requirements:

formula =
IF ( [Quality OK] <> BLANK (), MAX ( Table[Max Date] ), BLANK () )

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.