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.
I have a dataset in the following format. Notice InitialDate of July 2022 has 1 corresponding row of RollingDate and Churn, June 2022 has 2 corresponding rows, May has 3 etc etc
And I want to display the results in a matrix like this.
The problem I'm finding it that if I just use the RollingDate as Columns and Churn as the Values, it looks like this
But what I want is this
Any help greatly appreciated
Solved! Go to Solution.
@andyor
First, add a Rank column to your table as follows:
Rank =
VAR __InitialDate = 'Table4'[InitialDate]
RETURN
RANKX(
FILTER( Table4 , Table4[InitialDate] = __InitialDate ),
Table4[RollingDate],
,ASC
)-1
Visualize on a Matrix visual as follows
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@andyor
First, add a Rank column to your table as follows:
Rank =
VAR __InitialDate = 'Table4'[InitialDate]
RETURN
RANKX(
FILTER( Table4 , Table4[InitialDate] = __InitialDate ),
Table4[RollingDate],
,ASC
)-1
Visualize on a Matrix visual as follows
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thanks @Fowmy
I got on the right track with a much more crude solution than yours but got stuck again.
How does one switch true() for comparing month + 1, month + 2 etc?
Finally, how can I display 'Original' in Rows to the right of Initial Date?
If I just add to Rows they automatically go into a dropdown... Thanks in advance. Subbed your youtube and look forward to going through your videos!!
Expected:
@andyor
Thanks:)
You can turn off the Step Layout under the Matrix Properties
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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 |
---|---|
108 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
139 | |
100 | |
95 | |
85 | |
63 |