We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello everyone!
Super new, and mostly self taught in Power Bi Destkop. I have gotten a lot of help building measures from this forum but I have not been able to find the help I need for this issue.
I'm trying to build a matrix that looks like this:
See a sample table that matches this desired visual above to this post to make it easier to help at the bottom of the page.
Here's one of the measures I have tried:
Also this one (and every variation I can think of):
Any help would be greatly appreciated as I've reached my knowledge limitation.
Sample Table:
| Site | Start_Date | Exams_Needed | Current_Status | Finish_Date |
TX | 2/22/2022 | B,C | B 1st Attempt | 15-Jul |
| TX | 2/22/2022 | B,C | B 1st Attempt | 15-Jul |
| AZ | 2/22/2022 | B,C | B 1st Attempt | 15-Jul |
| TX | 2/22/2022 | B,C | B 2nd Attempt | 15-Jul |
| NC | 2/22/2022 | B,C | B 2nd Attempt | 15-Jul |
| NC | 2/22/2022 | B,C | C 1st Attempt | 1-Jun |
| NC | 2/22/2022 | B,C | C 1st Attempt | 1-Jun |
| TX | 2/22/2022 | None | Exams Complete | 1-Apr |
| AZ | 3/7/2022 | C | C 1st Attempt | 10-Jun |
| AZ | 3/21/2022 | A,B,C | A 1st Attempt | 10-Aug |
| NC | 3/21/2022 | A,B,C | A 1st Attempt | 10-Aug |
| NC | 3/21/2022 | A,B,C | A 1st Attempt | 10-Aug |
| TX | 3/21/2022 | A,B,C | A 1st Attempt | 10-Aug |
| NC | 3/21/2022 | A,B,C | A 1st Attempt | 10-Aug |
| NC | 3/21/2022 | A,B,C | A 1st Attempt | 10-Aug |
| PA | 3/21/2022 | A,B,C | A 1st Attempt | 10-Aug |
| PA | 3/21/2022 | A,B,C | A 1st Attempt | 10-Aug |
| AZ | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| AZ | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| AZ | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| AZ | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| NC | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| TX | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| AZ | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| AZ | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| AZ | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| AZ | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| NC | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| NC | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| NC | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| PA | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| TX | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| TX | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| TX | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| TX | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| TX | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| TX | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| NC | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| PA | 3/21/2022 | B,C | B 1st Attempt | 15-Jul |
| TX | 3/21/2022 | B,C | C 1st Attempt | 15-Jul |
| AZ | 3/21/2022 | None | Exams Complete | 10-May |
| TX | 3/21/2022 | None | Exams Complete | 10-May |
| AZ | 4/4/2022 | B,C | Prehire | |
| AZ | 4/4/2022 | B,C | Prehire | |
| AZ | 4/4/2022 | A,B,C | Prehire | |
| AZ | 4/4/2022 | A,B,C | Prehire |
Solved! Go to Solution.
@azlocal21 , Try a measure like
var _max = VAR _MostRecentFilter = MAXX( Filter( allselected('Table1') , 'Table1'[Start_Date]<=Today()) ,'Table1'[Start_Date])
Return
calculate(count('Table1'[Start_Date]), filter('Table1', 'Table1'[Start_Date] =__max))
@azlocal21 , Try a measure like
var _max = VAR _MostRecentFilter = MAXX( Filter( allselected('Table1') , 'Table1'[Start_Date]<=Today()) ,'Table1'[Start_Date])
Return
calculate(count('Table1'[Start_Date]), filter('Table1', 'Table1'[Start_Date] =__max))
When I tried that this is the error message it gives me.
The syntax for ')' is incorrect. (DAX(var _max = VAR MostRecentFilter = MAXX( Filter( allselected('Table1') , 'Table1'[Start_Date]<=Today()) ,'Table11'[Start_Date])Returncalculate(count('Table1'[Start_Date]), filter('Table1', 'Table1'[Start_Date] =_max)))).
**Update**
I removed the VAR _MostRecentFilter from the measure and that works great for giving me the number or most recent hires for the most recent start date.
The problem I am having now is that the finish date is pulling the earliest date for every exam path.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 32 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 66 | |
| 40 | |
| 34 | |
| 25 |