Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello there,
I have a table that has daily inputs for job orders that looks like this:
| Date | Full Plate Number | Month |
| 1/1/2021 | Job Order 1 | Jan |
| 1/1/2021 | Job Order 2 | Jan |
| 1/1/2021 | Job Order 3 | Jan |
| 1/1/2021 | Job Order 4 | Jan |
| 1/2/2021 | Job Order 3 | Jan |
| 1/2/2021 | Job Order 4 | Jan |
| 1/2/2021 | Job Order 5 | Jan |
| 1/2/2021 | Job Order 6 | Jan |
| 2/1/2021 | Job Order 5 | Feb |
| 2/1/2021 | Job Order 6 | Feb |
| 2/1/2021 | Job Order 7 | Feb |
| 2/1/2021 | Job Order 8 | Feb |
| 2/2/2021 | Job Order 7 | Feb |
| 2/2/2021 | Job Order 8 | Feb |
| 2/2/2021 | Job Order 9 | Feb |
| 2/2/2021 | Job Order 10 | Feb |
| 2/2/2021 | Job Order 11 | Feb |
I'm trying to create a table using DAX that would give me a distinct count of a given month generating a table that looks like this:
| Month | Distinct Item of that month |
| Jan | Job Order 1 |
| Jan | Job Order 2 |
| Jan | Job Order 3 |
| Jan | Job Order 4 |
| Jan | Job Order 5 |
| Jan | Job Order 6 |
| Feb | Job Order 5 |
| Feb | Job Order 6 |
| Feb | Job Order 7 |
| Feb | Job Order 8 |
| Feb | Job Order 9 |
| Feb | Job Order 10 |
| Feb | Job Order 11 |
so far I have tried..
Solved! Go to Solution.
@amitchandak what ended up working thanks to your inspiration was
CALCULATETABLE(CROSSJOIN(DISTINCT([Date(Month)]),DISTINCT([Job Order])),Filter)
@Anonymous , Have you tried like
crossjoin(distinct(Table[Date Full]), Distinct( Table[Plate Number])
or
crossjoin(CALENDAR(DATE(2021,1,1),TODAY()), Distinct( Table[Plate Number])
@amitchandak that is giving me all the months I only want the months that exist
@amitchandak what ended up working thanks to your inspiration was
CALCULATETABLE(CROSSJOIN(DISTINCT([Date(Month)]),DISTINCT([Job Order])),Filter)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.