Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello Experts,
Im running in to the following problem: I have 2 tables:
Calender
| Date | datekey | More calender stuff | ||
| 1/1/2020 | 01012020 | etc | ||
| 1/2/2020 | 01022020 | etc | ||
| 1/3/2020 | 01032020 | etc |
values
| Datekey | value | |
| 1012020 | 55 | |
| 1032020 | 12 |
They ofcourse have a relationship on datekey.
I created visuals based on the values. But now i want the following.
If the datekey exists in calender table but not in the values table it should show a value of 100.
I tried using EXCEPT but i couldnt get it to work. Anyone of you who did this before and can help me out?
This indeed could work. But i figured out that there are also values of 0. And that would result in more 100's then we would like.
@Anonymous
Try using ISBLANK
Measure = IF(ISBLANK(SUM(Table[Value])),100, SUM(Table[Value]))
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
This works indeed. I thought isblank wont work because there is no record anyway. but it does 😄
How about this?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 120 | |
| 95 | |
| 70 | |
| 69 | |
| 65 |