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.
Hello Community, I have a question and I do not know how to make the query, but I will try to be clear ...
I have a table with several columns (management, area, company, description of the action to be performed, status of the share (late, on time, etc.) and the expiration date of the share).
What I need is to generate a measure that allows me to obtain the number of all corrective actions with delayed action status that are more than 15 days late.
How can I do it?
Thank you
Solved! Go to Solution.
@Syndicate_Admin , There should be two days, assume the second date is today. You need a measure
Calculate(countrows(Table), filter(Table, Table[Status] = "Late" && Table[expiration date] <Today() -15 ))
Hi @Syndicate_Admin ,
Something like below:
measure = Calculate(COUNT([ACTION]),FILTER('TABLE',[STATUS]="LATE"&&[DELAYED DATE]>15))
If you don't have the [DELAYED DATE] in the table, you could use DATEDIFF() function to get the day difference between [expiration date] and TODAY() or any given date.
Modify the formula as below:
measure =
VAR DELAYED DATE = DATEDIFF([expiration date],TODAY(),DAY)
RETURN
Calculate(COUNT([ACTION]),FILTER('TABLE',[STATUS]="LATE"&&[DELAYED DATE]>15))
Best Regards,
Jay
Hi @Syndicate_Admin ,
Something like below:
measure = Calculate(COUNT([ACTION]),FILTER('TABLE',[STATUS]="LATE"&&[DELAYED DATE]>15))
If you don't have the [DELAYED DATE] in the table, you could use DATEDIFF() function to get the day difference between [expiration date] and TODAY() or any given date.
Modify the formula as below:
measure =
VAR DELAYED DATE = DATEDIFF([expiration date],TODAY(),DAY)
RETURN
Calculate(COUNT([ACTION]),FILTER('TABLE',[STATUS]="LATE"&&[DELAYED DATE]>15))
Best Regards,
Jay
@Syndicate_Admin , There should be two days, assume the second date is today. You need a measure
Calculate(countrows(Table), filter(Table, Table[Status] = "Late" && Table[expiration date] <Today() -15 ))
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 |
---|---|
96 | |
95 | |
82 | |
71 | |
64 |
User | Count |
---|---|
116 | |
106 | |
94 | |
79 | |
72 |