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 Everyone,
I am trying to create matrix visual based on my sample data for project transition, based on date of status change selection my projects from stage and to stage should be changed and always I should showcase latest stage for project
Sample Input:
Expected Output
When I Select Date From 11-16-2021 to 5-25-2022 or after
When I Select Date From 11-16-2021 to 5-24-2022
Always project status transition is from Latest From Status to Latests To Status.
Thanks Advance for your help!
Solved! Go to Solution.
Hi @tamerj1
Thanks for looking into it, I did some changes in KPI logic, here is logic which is working as expected for me
Previous Status-Rows
Status-Columns
@Anonymous
Interesting problem. So the previous status is always the first one and the status is always the last one? This won't work using the columns from the same table. It would require two duplicate tables having all unique status values, one to be placed on rows and one tobe placed on columns. Yet it will remain tricky. I will try to work on it tomorrow.
Thanks @tamerj1 , for checking on it, Yes we need to showcase as columns but the challenge here is based on date selection it should show case min status->max status transition and count against status with measures I could able to achive but ask from client is to showcase as matrix, pls let me know if any findings
Thanks Again for checking...
Hi @Anonymous
Not sure if this is what you need. Please refer to attached sample file
Count =
SUMX (
VALUES ( Data[ID] ),
CALCULATE (
VAR SelectedStatus = SELECTEDVALUE ( 'Status'[Status] )
VAR SelectedPreStatus = SELECTEDVALUE ( Previous_Status[Previous Status] )
VAR CurrentIDTable = CALCULATETABLE ( Data, ALLSELECTED ( 'Date' ) )
VAR LastStatusDate = MAXX ( CurrentIDTable, Data[Date of Status Change] )
VAR LastStatus = MAXX ( FILTER ( CurrentIDTable, Data[Date of Status Change] = LastStatusDate ), Data[Status] )
VAR FirstPreStatusDate = MAXX ( TOPN ( 2, CurrentIDTable, Data[Date of Status Change], ASC ), Data[Date of Status Change] )
VAR FirstPreStatus = MAXX ( FILTER ( CurrentIDTable, Data[Date of Status Change] = FirstPreStatusDate ), Data[Previous Status] )
RETURN
IF (
SelectedStatus = LastStatus && SelectedPreStatus = FirstPreStatus,
1,
0
)
)
)
Hi @tamerj1
Thanks for looking into it, I did some changes in KPI logic, here is logic which is working as expected for me
Hi @Anonymous
which column is in the rows and which colum is in the columns of the matrix?
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 |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
57 | |
49 | |
44 | |
18 | |
18 |