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.
Hello,
I have this table :
I have it linked to a Calendar table through the "Created" date.
I need to Show the COUNT of ID between "Created + 30" and "Resolved"
So for example, for ID 44564, the Line chart will count 1 starting from 10/2/2022 to 15/3/2022
And for ID 44555, the Line chart will count 1 starting from 19/3/2022 to 15/5/2022
How can I achieve this in a measure, taking into account that the relationship between that table and the calendar table is "Created" ?
Thanks
Solved! Go to Solution.
Thanks for reaching out to us.
>> for ID 44564, the Line chart will count 1 starting from 10/2/2022 to 15/3/2022. And for ID 44555, the Line chart will count 1 starting from 19/3/2022 to 15/5/2022
You can try this way
Since there is no relationship between the 'calendar' and the ID in the 'Table', it needs us to manually create a measure for each id
count1 = CALCULATE(COUNT('Table'[ID]),FILTER('Table','Table'[ID]=44564 && 'Table'[Created+30]<=MIN('calendar'[Date]) && 'Table'[Resolved]>=MIN('calendar'[Date])))
count2 = CALCULATE(COUNT('Table'[ID]),FILTER('Table','Table'[ID]=44555 && 'Table'[Created+30]<=MIN('calendar'[Date]) && 'Table'[Resolved]>=MIN('calendar'[Date])))
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Thanks for reaching out to us.
>> for ID 44564, the Line chart will count 1 starting from 10/2/2022 to 15/3/2022. And for ID 44555, the Line chart will count 1 starting from 19/3/2022 to 15/5/2022
You can try this way
Since there is no relationship between the 'calendar' and the ID in the 'Table', it needs us to manually create a measure for each id
count1 = CALCULATE(COUNT('Table'[ID]),FILTER('Table','Table'[ID]=44564 && 'Table'[Created+30]<=MIN('calendar'[Date]) && 'Table'[Resolved]>=MIN('calendar'[Date])))
count2 = CALCULATE(COUNT('Table'[ID]),FILTER('Table','Table'[ID]=44555 && 'Table'[Created+30]<=MIN('calendar'[Date]) && 'Table'[Resolved]>=MIN('calendar'[Date])))
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@milomilo2020 , You can refer if this blog can help how deal with start and end date
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
User | Count |
---|---|
89 | |
86 | |
75 | |
69 | |
68 |
User | Count |
---|---|
220 | |
128 | |
117 | |
82 | |
77 |