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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
carlochecchia
Advocate I
Advocate I

Calculation on PowerBI

Hi All,

 

I was wondering if anyone could help me with a simple Calculation on my Dashboard. I have the following table:

 

1.JPG

 

 

 

 

 

 

 

 

 

 

 

 I was trying to create a calculated measure that would SUM, the DISTINCTCOUNT of WORKERS, per day..

 

Something like this:

 

2.JPG

 

 

 

 

 

 

 

I am looking for a DAX formula that would give me a total of 7.

 

Thanks in advance

 

Carlo

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@carlochecchia

 

Hi, try with this:

 

CountPeople =
SUMX (
    SUMMARIZE (
        Table2,
        Table2[Date],
        "DC";  DISTINCTCOUNT ( Table2[Name] )
    ),
    [DC]
)

Regards

 

Victor

Lima - Peru




Lima - Peru

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

@carlochecchia

 

Hi, try with this:

 

CountPeople =
SUMX (
    SUMMARIZE (
        Table2,
        Table2[Date],
        "DC";  DISTINCTCOUNT ( Table2[Name] )
    ),
    [DC]
)

Regards

 

Victor

Lima - Peru




Lima - Peru

@Vvelarde

 

It worked. Thank you so much!

Best Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.