This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi, I am currently trying to do something very simple. I want to create a new column in which if only the first column is Not Null, the value will be 1. If the First and Second columns are not Null then the value will be 2, and so on. The columns are from different tables.
I was not able to Use ISBLANK() with a SWITCH Function.
Here is an example to make it clear.
Anyone have any ideas would be appreciated.
Solved! Go to Solution.
Hi Asma,
I have created dummy data for your reference, hopefully your requirement is fulfilled.
Note: You can use LOOKUPVALUE Dax in order to get columns from different tables.
Dax -
Please refer to the below image.
Hi Asma,
I have created dummy data for your reference, hopefully your requirement is fulfilled.
Note: You can use LOOKUPVALUE Dax in order to get columns from different tables.
Dax -
Please refer to the below image.
Hi @AsmaAlNashash ,
You could try like this:-
StageID =
IF ( ISBLANK ( MAX ( 'Table (1)'[Column1] ) ), 0, 1 )
+ IF ( ISBLANK ( MAX ( 'Table (2)'[Column2] ) ), 0, 1 )
+ IF ( ISBLANK ( MAX ( 'Table (3)'[Column3] ) ), 0, 1 )
+ IF ( ISBLANK ( MAX ( 'Table (4)'[Column4] ) ), 0, 1 )
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 62 | |
| 47 | |
| 28 | |
| 24 | |
| 21 |