This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
How can i recreate a table from step 1 to step 2 below? (in DAX)
1.
Customer ID | Price | Program Name | Date
ABC $100 Show 10/1/2022
ABC $50 Movie 10/1/2022
EFG $100 Show 10/5/2022
EFG $100 Show 10/5/2022
XXX $100 Show 10/9/2022
XXX $50 Movie 10/9/2022
YYY $100 Show 10/15/2022
YYY $100 Show 10/15/2022
from above to somthing like this:
Customer ID | Date
ABC 10/1/2022
EFG 10/5/2022
XXX 10/9/2022
YYY 10/15/2022
think i need to use DISTINT but not sure how i can add additional fields like date
thank you!
Solved! Go to Solution.
I would do this in the query editor, but you can do it in DAX too with this table expression
NewTable = SUMMARIZE(Table, Table[CustomerID], Table[Date])
Replace Table with your actual table name.
Pat
Hi,
To your Table visual, drag Customer ID and write this measure
Min date = min(Data[Date])
Hope this helps.
I would do this in the query editor, but you can do it in DAX too with this table expression
NewTable = SUMMARIZE(Table, Table[CustomerID], Table[Date])
Replace Table with your actual table name.
Pat
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 26 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 45 | |
| 44 | |
| 41 | |
| 21 | |
| 18 |