Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
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.
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Check out the November 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
21 | |
21 | |
13 | |
12 |
User | Count |
---|---|
43 | |
28 | |
25 | |
23 | |
22 |