Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Setup:
I have a situation where coaches manually populate check-ins and progressions against milestones for specific members. These are collected across multiple tabs (one for or each coach). The tabs look like this:
Important considerations:
Requirement
identify the earliest date in which a milestone was achieved (and latest, but this should be easy if i know how to do the earliest)
I was thinking something along the lines of finding identifying all the columns with said milestone and then getting the max value of the positionally offset date columns. eg:
Earliest Milestone 3 Date for Member AC:
Not sure how to do this, or if it possible as suggested. Will take any help here!!
Solved! Go to Solution.
You first need to make the data table looks like the following, you may check the steps in power query, just some duplicates and remove columns.
Then you should able to find the earliest date with a a measure, also change min to max to get the latest date.
Latest = CALCULATE(MAX([Message Sent]),FILTER('Union Table',[Member]="AC"&&[Milestone]="Milestone 3" ))
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
You first need to make the data table looks like the following, you may check the steps in power query, just some duplicates and remove columns.
Then you should able to find the earliest date with a a measure, also change min to max to get the latest date.
Latest = CALCULATE(MAX([Message Sent]),FILTER('Union Table',[Member]="AC"&&[Milestone]="Milestone 3" ))
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
Thank you! I ended up restructuring the data from Wide -> Long via union, and then performing the calculation on the long table which made much more sense!
Important to note - I have already combined all the data from all the coaches in a unified dataset (via union) on powerbi.
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
8 | |
7 |