March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi all,
I want to create a measure that counts if Reference1, Reference2 and Reference3 has a value in the field?
For example the top row would be 2 as Reference1 and Reference2 have a value in field.
Solved! Go to Solution.
Hi @HenryJS ,
Does "N/A" mean a value, if so ,you need a calculated column as below:
Column = IF('Table'[Reference 1]=BLANK(),0,1)+IF('Table'[Reference 2]=BLANK(),0,1)+IF('Table'[Reference 3]=BLANK(),0,1)
Otherwise,a calculated column as below:
Column 2 = IF('Table'[Reference 1]=BLANK() || 'Table'[Reference 1]="N/A",0,1)+IF('Table'[Reference 2]=BLANK() || 'Table'[Reference 2]="N/A",0,1)+IF('Table'[Reference 3]=BLANK() || 'Table'[Reference 3]="N/A",0,1)
And you will see :
For the related .pbix file,pls click here.
Best Regards,
Kelly
Hi @HenryJS ,
Does "N/A" mean a value, if so ,you need a calculated column as below:
Column = IF('Table'[Reference 1]=BLANK(),0,1)+IF('Table'[Reference 2]=BLANK(),0,1)+IF('Table'[Reference 3]=BLANK(),0,1)
Otherwise,a calculated column as below:
Column 2 = IF('Table'[Reference 1]=BLANK() || 'Table'[Reference 1]="N/A",0,1)+IF('Table'[Reference 2]=BLANK() || 'Table'[Reference 2]="N/A",0,1)+IF('Table'[Reference 3]=BLANK() || 'Table'[Reference 3]="N/A",0,1)
And you will see :
For the related .pbix file,pls click here.
Best Regards,
Kelly
Hi @HenryJS
its better to create calculated column, not measure, like
Column =
IF((ISBLANK([Reference1]), 0, 1) +
IF((ISBLANK([Reference2]), 0, 1) +
IF((ISBLANK([Reference3]), 0, 1)
do not hesitate to give a kudo to useful posts and mark solutions as solution
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
105 | |
98 | |
65 | |
54 |