Forum Discussion
POSPOS
2 years agoPost 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:
| Protocol | Status |
| 19 | In-Progres |
| 20 | Activated |
| 21 | Closed |
| 22 | Open |
Table2:
| Protocol | RDate |
| 19 | 06/12/2023 |
| 20 | 05/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.
| Protocol | Blank Values |
| 19 | 0 |
| 20 | 0 |
| 21 | 1 |
| 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
- vanessafvgCommunity Championif you add this as a new measure this should bring back the required resultIs Blank =var result = SUM('Table (2)'[BlankValues]) +0return if(result =1,0,1)