Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |