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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
olimilo
Continued Contributor
Continued Contributor

Calculated table of distinct columns

Is it possible to get a table of distinct values for only the first 3 columns for the following table? I can do this using Power Query but would like to do the solution using DAX to avoid creating a new query to load:

 

NAME TEST_NUMBER TEST_RESULT RESULT_NUMBER
1000347038 4777880 FAIL 65212748
1000347038 4777880 FAIL 65212747
1000347038 4777880 FAIL 65481797
1000347038 4777881 FAIL 65212749
1000347038 4777881 FAIL 65212750
1000347038 4777967 FAIL 65212751
1000347038 4777968 PASS 65212754
1000347038 4777968 PASS 65212760
1000347038 4777968 PASS 65212756
1000347038 4777968 PASS 65212753
1000347038 4777968 PASS 65212759
1000347038 4777968 PASS 65212757
1000347038 4777968 PASS 65212758

 

Essentially, after removing the RESULT_NUMBER the output would be:

 

NAME TEST_NUMBER TEST_RESULT
1000347038 4777880 FAIL
1000347038 4777881 FAIL
1000347038 4777967 FAIL
1000347038 4777968 PASS

 

1 ACCEPTED SOLUTION
olimilo
Continued Contributor
Continued Contributor

Was able to accomplish this by using SUMMARIZECOLUMNS:

 

Table = SUMMARIZECOLUMS([NAME], [TEST_NUMBER], [TEST_RESULT])

 

View solution in original post

1 REPLY 1
olimilo
Continued Contributor
Continued Contributor

Was able to accomplish this by using SUMMARIZECOLUMNS:

 

Table = SUMMARIZECOLUMS([NAME], [TEST_NUMBER], [TEST_RESULT])

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors