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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

sum of boxes with value (not total sum of values)

Hello,
What would be the dax formula so that it counts the total but not the sum of the row but the sum of the users who do have some data
Example:
On 12/30/2022 there are three users who have data, the total should be 3 (in this case it matches the sum but does not do it correctly)
On 12/29/2022 there are four users who have data, the total should be 4
like this with all the rows.

apenaranda_0-1713868310962.png

Thank you

2 REPLIES 2
amitchandak
Super User
Super User

@Syndicate_Admin , Assumer you current measure is M1 

 

then create a measure like

 

if(isinscope(Table[User]), [M1] , countx(values(Table[User]), if(not(isblank([M1])) , [User], blank() ) ) )

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Well, it worked for me but I see that things are more difficult than I thought. The fact is that now I want to divide the rows by ADDing all the values and dividing it by the number of rows there are.
According to the screenshot I attached it would be:

apenaranda_0-1713876808359.png


= add values (63 if I counted correctly) / count rows (19)
Thank you.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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