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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
carlochecchia
Helper I
Helper 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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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