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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Milozebre
Helper V
Helper V

Formulas

I need your help to solve a problem. I have tried various solutions that I have read on the forums but that does not help me.

I have this kind of data :

 

Classeur1 - Excel.jpg
Several references belonging to the same team and with the same number.

New Message - Microsoft Power BI Community - Google Chrome.jpg

 

Dont add all numbers but only 1 times by ID

And I would like to get this kind of results via a matrix.

 

thank you in advance for your help.

 

2 ACCEPTED SOLUTIONS
v-qiuyu-msft
Community Support
Community Support

Hi @Milozebre,

 

You can create a calculated table to list all distinct ID, Team values:

 

Table = SUMMARIZE('Table1',Table1[ID],'Table1'[Team],"Value",MAX('Table1'[NUMBER]))

 

Then drag that [ID] and [Team] to matrix Row group, [Value] to Values.

 

q1.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Another option is to use the Query Editors remove duplicates function. Just select the 4 columns and click remove duplicates

 

Remove duplicates.png

 

Remove duplicates3.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

7 REPLIES 7
v-qiuyu-msft
Community Support
Community Support

Hi @Milozebre,

 

You can create a calculated table to list all distinct ID, Team values:

 

Table = SUMMARIZE('Table1',Table1[ID],'Table1'[Team],"Value",MAX('Table1'[NUMBER]))

 

Then drag that [ID] and [Team] to matrix Row group, [Value] to Values.

 

q1.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-qiuyu-msft

First thank you for your reply.

 

This is exactly the result I was hoping for.

I hadn't thought of SUMMARIZE 😞

I realize that I still have some way to go 🙂

 

 

A big thank-you

Another option is to use the Query Editors remove duplicates function. Just select the 4 columns and click remove duplicates

 

Remove duplicates.png

 

Remove duplicates3.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Hi @Phil_Seamark

 

Thank you for your reply

 

Two solutions 🙂

I am a taker because I am fond of learning and I realize that with the many features of Power Bi and DAX, I have enough to take care of for a long time 🙂

 

Thank you

MFelix
Super User
Super User

Hi @Milozebre,

Do a distincr count on ID and you will get what you need.

Regards,

MFelix

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



HI MFelix, 

 

Thank you for your reply.

I have already tried but it doesn't work.

 

The distinct count was done in the ID column or on the nber column?

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.