Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills 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.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!