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,
I am trying to create a historical trendline showing the past status of a KPI in a table but struggle to do so
Below is the example table used
Table_1
Order Number | Status | Date Approved | Date Closed | Condition A | Condition B |
1 | Open | 1-Nov-17 | No | No | |
2 | Closed | 2-Feb-18 | 1-Jan-19 | No | No |
3 | Open | 3-Mar-18 | Yes | No | |
4 | Open | 4-Apr-19 | No | No | |
5 | Closed | 10-Apr-19 | 2-Feb-20 | No | No |
Using the table as an example, let's define the open record KPI for that reporting month as KPI-01
I am able to calculate the KPI record for the current month by creating this measure:
KPI-01 =
Calculate ( DistinctCountNoblank[OrderNumber], Filter(Table_1, Table_1[Condition A]= "No" && Table_1[Condition B]= "No], Table_1[Status] = "Open"]
Note : Condition A, B need to be "No" and Status need to be Open in order to qualify as a Count in KPI-01
However, I want to create a historical line chart where it shows the no. of KPI-01 based on the slicer date and not affected by the record status e.g.
I have written the following running total dax only to realise that it is affected by the record status.
How can the running total DAX be written to reflect the historical record trend without being affected by the record status ?
Appreciate your help in this issue. Thanks !
@blackhawk be careful of the function of DATEVALUE, it may not convert the text to datevalue you want.
@blackhawk , Check if my blog on HR with Strat and end date can help on this topic too
Video: https://www.youtube.com/watch?v=e6Y-l_JtCq4
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 |
---|---|
49 | |
25 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |