Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
This is probably a very simple solution. I have a card for daily count that uses Today() but I also want to see the historical trend. I obviously cannot use Today() since it will only show today. What could I use instead to show the count on each calendar date? Currently, there is not a relationship between the Calendar table and the data table, because I only have the start and end dates so I dont want my filter to only include records that started or ended on that date.
My Current measure:
CALCULATE(
DISTINCTCOUNT(Assignments[ASSIGNMENT_ID]),
Filter(Assignments,
([ASSIGNMENT_CURRENT_STATUS_NAME] = "Cleared to Start" || ([ASSIGNMENT_CURRENT_STATUS_NAME] = "Cancelled" && Assignments[WAS_NEVER_STARTED] = false)) &&
TODAY() >= 'Assignments'[START_DATE] &&
TODAY() <= 'Assignments'[END_DATE] &&
Assignments[JOB_POSITION_TYPE_NAME] = "Travel"
))
Solved! Go to Solution.
@taylorb , you can use userelation and crossfilter to deal with this
refer
Also, refer to this video how to take trend using a disconnected table
https://www.youtube.com/watch?v=duMSovyosXE
@taylorb , you can use userelation and crossfilter to deal with this
refer
Also, refer to this video how to take trend using a disconnected table
https://www.youtube.com/watch?v=duMSovyosXE
I didnt know that you can use inactive relationships like that. Thanks so much
@taylorb ,
Is there a way to add new column which will represent actual date of reporting?
Example: today is 8/10/2020, tomorrow for all new rows it will be 8/11/2020, etc.
In this case you would compare start/end date with this columns (this column will substitute functino Today() so that it can be dynamic).
User | Count |
---|---|
54 | |
22 | |
19 | |
16 | |
11 |
User | Count |
---|---|
81 | |
55 | |
40 | |
19 | |
12 |