Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
yyhk123
Frequent Visitor

distinct table with more than 1 fields

 

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!

1 ACCEPTED SOLUTION
ppm1
Solution Sage
Solution Sage

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

 

Microsoft Employee

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

To your Table visual, drag Customer ID and write this measure

Min date = min(Data[Date])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ppm1
Solution Sage
Solution Sage

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

 

Microsoft Employee

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.