Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
O.K., this is embarrasing, but this DAX measure ...
select
*
from dbo.FACT_employees_view
where
(status = 'active' and started <= '2021-12-15')
... on MS SQL and it works fine, but here the started column is of text format, changed to Date in PowerBI Column Tools.
Dirk
Solved! Go to Solution.
Hi @MoodyDirk
I think you should wrap the date coumn with the date function for comparision, so the measure would look like
HeadCount = CALCULATE(COUNTROWS('FACT_employees'), 'FACT_employees'[started] <= date(2021,12,15) )
This should work but let us know otherwise...
Thanks,
AnthonyJoseph
Hi @MoodyDirk
I think you should wrap the date coumn with the date function for comparision, so the measure would look like
HeadCount = CALCULATE(COUNTROWS('FACT_employees'), 'FACT_employees'[started] <= date(2021,12,15) )
This should work but let us know otherwise...
Thanks,
AnthonyJoseph
Yes, this works,
Thank You, Anthony.
User | Count |
---|---|
53 | |
46 | |
19 | |
16 | |
15 |
User | Count |
---|---|
114 | |
44 | |
44 | |
28 | |
22 |