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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I've below DAX logic for my chart. I've tried but no luck. Can someone help me on this one?
IF
Solved! Go to Solution.
Hi @Anonymous ,
Please create a measure like this.
Measure =
IF (
CALCULATE(
COUNT(CM[Change ID]),
FILTER(
ALLSELECTED('CM'),
CM[Overdue / Not overdue] = "Not Overdue"
)
) < 1 ,
CALCULATE(
COUNT(CM[Change ID]),
FILTER(
ALLSELECTED('CM'),
CM[Overdue / Not overdue] = "Not Overdue" && CM[CMLastMonthYear] = 1
)
) ,
"No Data Message"
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Try this
IF (
CALCULATE(count(CM[Change ID]), SELECTEDVALUE(CM[Overdue / Not overdue]) = "Not Overdue") < 1 ,
CALCULATE(count(CM[Change ID]), SELECTEDVALUE(CM[Overdue / Not overdue]) = "Not Overdue" && SELECTEDVALUE(CM[CMLastMonthYear]) = 1) ,
"No Data Message"
)
Without your data I can't be sure this si what you need.
Regards
Phil
Proud to be a Super User!
Hi,
SelectedValue function in Dax True/False not accepting.
Any other methods to do this? altease with out "No Data message" is possible?
Many thanks for your try 😊.
Hi @Anonymous ,
Please create a measure like this.
Measure =
IF (
CALCULATE(
COUNT(CM[Change ID]),
FILTER(
ALLSELECTED('CM'),
CM[Overdue / Not overdue] = "Not Overdue"
)
) < 1 ,
CALCULATE(
COUNT(CM[Change ID]),
FILTER(
ALLSELECTED('CM'),
CM[Overdue / Not overdue] = "Not Overdue" && CM[CMLastMonthYear] = 1
)
) ,
"No Data Message"
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
If you provided your data and/or PBIX it woudl be easier to work on this.
Try this
IF (
CALCULATE(count(CM[Change ID]), CM[Overdue / Not overdue] = "Not Overdue") < 1 ,
CALCULATE(count(CM[Change ID]), CM[Overdue / Not overdue] = "Not Overdue" && CM[CMLastMonthYear] = 1) ,
"No Data Message"
)
Regards
Phil
Proud to be a Super User!
Hi Philip,
Thanks for your reply. I get below error msg.
For uploading pbix file/Data. I do not see any option to upload. Thanks!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 82 | |
| 72 | |
| 46 | |
| 35 |