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
POSPOS
Post Partisan
Post Partisan

Highlight missing dates using DAX

Hi All,

I have a requirement to highlight a date if it is blank. Data is available in two tables.


Please find sample data below:
Table1:

ProtocolStatus
19In-Progres
20Activated
21Closed
22Open


Table2:

ProtocolRDate
1906/12/2023
2005/05/2021
21 


Requirement : If the date is blank , then show as 1 else 0.
I created a column in Table 2 as

 

 

BlankValues = 
IF(ISBLANK('Table (2)'[RDate]),1,0)

 

 

When , I use this column with Table1, there is no value for a protocol if it is not available in Table2.

ProtocolBlank Values
190
200
211
22 


Please find sample pbix file in the link below:
https://drive.google.com/file/d/17ZFDxOfCDedtMN9vJxl17R06r-WauDP7/view?usp=sharing
Thank you

1 REPLY 1
vanessafvg
Super User
Super User

if you add this as a new measure this should bring back the required result
 
Is Blank =
var result = SUM('Table (2)'[BlankValues]) +0
return  if(result =1,0,1)
 
vanessafvg_0-1698782718199.png

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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.