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.
I have MaintenanceCard table with Column "Id", "WorkBeginDate", "WorkEndedDate", "WorkStatus".
WorkStatus values are "Not Started", "Completed"
I have date slicer for selecting for example 1.6.2019-7.6.2019.
I would like to Card visualization proving value for "Number of open MaintenanceCards".
How to look back in history to see if WorkEndedDate was blank in 1.6.2019-7.6.2019. And how many MaintenanceCards met criteria?
Is this possible to do with calculated measure?
Solved! Go to Solution.
Hi @Anonymous ,
We can create a measure to meet your requirement:
Not Started Count =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Id] ),
FILTER (
'Table',
'Table'[WorkStatus] = "Not Started"
&& ISBLANK ( 'Table'[WorkEndedDate] )
&& 'Table'[WorkBeginDate] >= MIN ( 'Calendar'[Date] )
&& 'Table'[WorkBeginDate] <= MAX ( 'Calendar'[Date] )
)
)
If it doesn't meet your requirement, Could you please show the exact expected result based on the Tables that we have shared.
Best regards,
Hi @Anonymous ,
How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?
Best regards,
Hi @Anonymous ,
We can create a measure to meet your requirement:
Not Started Count =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Id] ),
FILTER (
'Table',
'Table'[WorkStatus] = "Not Started"
&& ISBLANK ( 'Table'[WorkEndedDate] )
&& 'Table'[WorkBeginDate] >= MIN ( 'Calendar'[Date] )
&& 'Table'[WorkBeginDate] <= MAX ( 'Calendar'[Date] )
)
)
If it doesn't meet your requirement, Could you please show the exact expected result based on the Tables that we have shared.
Best regards,
Refer, if this can help :HR-Analytics-Active-Employee-Hire-and-Termination-trend
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
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 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |