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.
Hi All,
So I do have an absence tracker that I constantly use that uses start date and end date to track number of days employees are sick. is there a way to use the Key Infuencers visualization to show that SUU was more common on Mondays or fridays for instance
Solved! Go to Solution.
Hi @AthonyALS ,
Here are the steps you can follow:
1. In power query – Add Column – Custom Column .
Duration.Days([END DATE] - [START DATE])
2. Enter data -- Create the following table.
This is derived from [Subtraction] of the Table, next to the Index number, how many rows will be generated.
3. Home -- Merge Queries -- Merge Queries as new
4. Click the extension icon and select [Index].
Result:
5. Create calculated column.
Date =
var _min=MINX(FILTER(ALL(Merge1),'Merge1'[ID]=EARLIER('Merge1'[ID])),[START DATE])
return
IF(
'Merge1'[Flag.Index]=MINX(FILTER(ALL(Merge1),'Merge1'[ID]=EARLIER('Merge1'[ID])),[Flag.Index]),
_min+1,
_min +[Flag.Index])-1
Day =
FORMAT('Merge1'[Date],"dddd"
)
Column =
COUNTX(
FILTER(ALL(Merge1),
'Merge1'[Day]=EARLIER('Merge1'[Day])),[Day])
6. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @AthonyALS ,
Here are the steps you can follow:
1. In power query – Add Column – Custom Column .
Duration.Days([END DATE] - [START DATE])
2. Enter data -- Create the following table.
This is derived from [Subtraction] of the Table, next to the Index number, how many rows will be generated.
3. Home -- Merge Queries -- Merge Queries as new
4. Click the extension icon and select [Index].
Result:
5. Create calculated column.
Date =
var _min=MINX(FILTER(ALL(Merge1),'Merge1'[ID]=EARLIER('Merge1'[ID])),[START DATE])
return
IF(
'Merge1'[Flag.Index]=MINX(FILTER(ALL(Merge1),'Merge1'[ID]=EARLIER('Merge1'[ID])),[Flag.Index]),
_min+1,
_min +[Flag.Index])-1
Day =
FORMAT('Merge1'[Date],"dddd"
)
Column =
COUNTX(
FILTER(ALL(Merge1),
'Merge1'[Day]=EARLIER('Merge1'[Day])),[Day])
6. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
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 |
---|---|
106 | |
93 | |
75 | |
62 | |
50 |
User | Count |
---|---|
147 | |
107 | |
105 | |
87 | |
61 |