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
I have four tables:
Table 1 - Sites, Groups (Site 1, Site 2 = Group A, etc), connected to Table 2 & Table 3
Table 2 - Maximum # for Site by day
Table 3 - Total # done for Site by day
Table 4 - Date Dimension, connected to Table 2 & Table 3

The data tables are by Site. I'm making a summary table by Group that counts # of days at max and over max.

I have the table completed, but I can't get the Total Line to reflect correctly for At Max/Over Max.
For Over Max, I am using:
If(HASONEFILTER(Table1[Group]),
SumX(DateDimension,
Calculate(IF(
SUM(Table3[Total])-Sum(Table2[Max])>0,
Count(DateDimension[Date]))),
Sumx(Filter(Table1,SUM(Table3[Total])-Sum(Table2[Max])>0),
Count(DateDimension[Date])))
Instead of the 2 in yellow above, I just get a blank.. anyone willing to throw out some ideas as to why?
Solved! Go to Solution.
@Anonymous Fairly certain that should be HASONEVALUE.
@Greg_Deckler I believe I got this HASONEFILTER formula from you, any idea why it wouldn't work to count dates?
@Anonymous Fairly certain that should be HASONEVALUE.
Hi,
Please check the below picture and the attached pbix file.
@Jihwan_Kim thanks for responding.
This is by individual day - every single day of the year - so that formula won't work.
The formula i have does work, for everything except for returning a total.
any other ideas?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |