Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have a table like the below and want to setup a calculated column with DAX to check whether each key from the "Concat" column has a value or not.
For example:
- po1drop1 has 2 rows, with 1 row has Value=100, so I want the Result=Yes
- podrop2 has 1 row only with blank value, so I want the Result=No
- podrop3 has 2 rows, with 1 row has Value=100, so I want the Result=Yes
- podrop4 has 2 rows, with 1 row has Value=100, so I want the Result=Yes
- podrop5 has 1 row only with blank value, so I want the Result=No
- podrop6 has 1 row only with blank value, so I want the Result=No
Not sure how to put the FILTER or EARLIER function in place in order to achieve the desired result.
Can anyone assist? Thanks.
Best regards,
Emily
Solved! Go to Solution.
@Anonymous , Try a new column
if(sumx(filter(table,[concat]=earlier([concat])),[Value])=100 ,"Yes","No")
or
if(maxx(filter(table,[concat]=earlier([concat])),[Value])=100 ,"Yes","No")
Hi @Anonymous ,
Glad that the solutions works for you.
Can you accept it as a solution so that others can refer it later?
Thanks,
Pragati
Hi @Anonymous ,
You can create a calculated column using DAX as follows:
@Pragati11 Thanks, I just tested your result in my file but I got the entire column with "Yes".....not sure if I did something wrong in the formula?
Best regards,
Emily
Hi @Anonymous ,
What's the datatype of your "VALUE" column? Is it wholenumber or text?
Thanks,
Pragati
Hi @Anonymous ,
Not sure why it is not working at your end.
I have tried the same formula when VALUE column is a string or numeric, it works for me.
Can you check again as the DISTINCTCOUNTNOBLANK will work both for String and numeric columns?
Thanks,
Pragati
@Pragati11 Would you mind to share your PBIX file with the solution so that I can test it from my end? Thanks!
Best regards,
Emily
HI @Anonymous ,
There you go:
Thanks,
Pragati
The proposed solution is working fine now, thank you very much! @Pragati11 @amitchandak
Best regards,
Emily
Hi @Anonymous ,
Glad that the solutions works for you.
Can you accept it as a solution so that others can refer it later?
Thanks,
Pragati
@Anonymous , Try a new column
if(sumx(filter(table,[concat]=earlier([concat])),[Value])=100 ,"Yes","No")
or
if(maxx(filter(table,[concat]=earlier([concat])),[Value])=100 ,"Yes","No")
Sorry that I found out your proposed solution is not 100% working in my real enviroment, because the Value column is a string type rather than numerical type so I can't use SUMX or MAXX fuction.
Any other way to get the same result in considering the Value column is a string?
Best regards,
Emily
@amitchandak Thanks for your proposed solution and both formulas working well. Have a great day!
Best regards,
Emily
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 6 |