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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Summarize Table

Hi guys,

I have a trouble here.

There are two tables

PabloSosa_1-1639165436334.png


And other table

PabloSosa_2-1639165473293.png


Both have the colummns CodUser in comun

I´m doing a new table with [colaboradores]  (Distict value) and count of columm [diferenca] with values no blank.

A new table like
[colaboradores] [diferenca]
Pablo                   15
Joao                     8

Follow the relantiohip 

PabloSosa_3-1639166918802.png



Thank´s 





1 ACCEPTED SOLUTION

Hi, @Anonymous 

 

You can try to new a table then rank, Like this:

New Table =
SUMMARIZECOLUMNS (
    Colaboradores[Colaborador],
    "Difference", CALCULATE ( COUNTROWS ( PontoB[Diferenca] ), [Diferenca] = "Debito" )
)

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

 

Best Regards,
Community Support Team _ Janey

View solution in original post

4 REPLIES 4
bcdobbs
Community Champion
Community Champion

Try

 

New Table =
    SUMMARIZECOLUMNS(
        Colaboradores[Colaborador],
        "Distinct Count", DISTINCTCOUNT(PontoB[Diferenca])
    )

@parry2k  is right though a measure would do the job or you could add a calculated column to Colaboradores.

 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
parry2k
Super User
Super User

@Anonymous where you are doing distinct count? Why do you want to create a new table? You can simply write a measure and visualize it?

 

Follow us on LinkedIn

 

Learn about conditional formatting at Microsoft Reactor

My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

I want a new table showing all "Colaboradores", and a columm with sum of "Diferenca" including the "Colaboradores" withouf diference.

PabloSosa_0-1639568900790.png

 

Because after i need rank and show a table like this

PabloSosa_1-1639569146870.png

 

 

Hi, @Anonymous 

 

You can try to new a table then rank, Like this:

New Table =
SUMMARIZECOLUMNS (
    Colaboradores[Colaborador],
    "Difference", CALCULATE ( COUNTROWS ( PontoB[Diferenca] ), [Diferenca] = "Debito" )
)

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

 

Best Regards,
Community Support Team _ Janey

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.