Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.
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.
Thank you
@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() ) ) )
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:
= add values (63 if I counted correctly) / count rows (19)
Thank you.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
74 | |
70 | |
70 | |
45 | |
41 |
User | Count |
---|---|
51 | |
47 | |
32 | |
28 | |
27 |