Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi all,
I am trying to create a measure that contains a filter on another measure.
I'm working in direct query mode (unfortunately the data comes in via API so I cannot work via Import mode), so this makes it a bit more complicated.
What I am trying to do is the following: I have a list of orders. Some of them are sent the same day (true,1 ), some not (false, 2).
To see true/false I created the following measure:
I've tried another measure as well, but that outcome sums up to 3, and I expect it to be 2 (2 orders are true), so it seems like the filter is not working.
Solved! Go to Solution.
Hi @Fowmy
I found a solution. This measure works:
Hi @Sophie_MGG ,
Thanks for your feedback and glad to know your issue has been solved!😀
Please kindly Accept it as the solution to make the thread closed. More people will benefit from it.
Best Regards,
Eyelyn Qin
@Sophie_MGG
Why don't you use a single measure as follows:
OrderCountSameDay =
CALCULATE (
DISTINCTCOUNT('Order'[order_number]),
'Order'[DLT pick up status]="Order zelfde dag gepickt"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @Fowmy ,
Thanks for your quick reply. I've tried that as well, but get the same error:
Any other ideas? It might not be possible, but in that case I'm wondering why.
Cheers,
@Sophie_MGG
Can you re-try, I just modified the measure. Make sure you are creating a measure, not a Column.
Post a picture of the error with formula if you face the this error
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
HI @Fowmy , I am indeed creating a measure, not a column (not possible in DQ mode)..
I've copied the measure from your first post but get the same error:
Many thanks for all your help. Much appreciated!
Hi @Fowmy
I found a solution. This measure works:
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |