Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I have a data set that logs each time somebody signs in.
Everytime somebody signs in, a row is created ie if 15 people sign in then 15 rows are added.
I want to calculate the average number of rows per day for a month. ie if there's a total of 62 for the month of may, avg would be 2
Currently using:
if(hasonevalue(table1[monthend], calculate(averagex(values(table1[date],calculate(count(table1[names]),table1[occupation<>blank()),calculate(calculate(count(table1[names],table1[occupation]<>blank())
Any help is greatly appreciated. I think I'm overthinking this
Solved! Go to Solution.
Assume your logic is correct
if(hasonevalue(table1[monthend],
averagex(summarize(table1[date],"_1",calculate(count(table1[names]),not(isblank(table1[occupation])))),[_1])
,calculate(count(table1[names]),not(isblank(table1[occupation]))))
Assume your logic is correct
if(hasonevalue(table1[monthend],
averagex(summarize(table1[date],"_1",calculate(count(table1[names]),not(isblank(table1[occupation])))),[_1])
,calculate(count(table1[names]),not(isblank(table1[occupation]))))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |