Forum Discussion
Incorrect Column Totals in Matrix showing
- 1 year ago
Hi maamirkhan2023 ,
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot). Do not include sensitive information. Do not include anything that is unrelated to the issue or question. Please show the expected outcome based on the sample data you provided. If possible please provide sample PBIX file.
Regards,
Dinesh
Still same issue as above screenshot
Hi maamirkhan2023,
Let's try other ways to fix it,
Instead of COUNT() or DISTINCTCOUNT() directly, wrap it inside SUMX for row-level precision
Correct IP Count =
IF(
HASONEVALUE(Q_Host_List_Detection_HOSTS[Asset Tags]),
CALCULATE(COUNT(Q_Host_List_Detection_HOSTS[IP])),
SUMX(
VALUES(Q_Host_List_Detection_HOSTS[Asset Tags]),
CALCULATE(COUNT(Q_Host_List_Detection_HOSTS[IP]))
)
)
Alternate: DISTINCT IPs per Asset Tag
Correct Distinct IPs =
IF(
HASONEVALUE(Q_Host_List_Detection_HOSTS[Asset Tags]),
DISTINCTCOUNT(Q_Host_List_Detection_HOSTS[IP]),
SUMX(
VALUES(Q_Host_List_Detection_HOSTS[Asset Tags]),
CALCULATE(DISTINCTCOUNT(Q_Host_List_Detection_HOSTS[IP]))
)
)
If still it's not working try with this,
Correct IP Count =
IF(
ISINSCOPE(Q_Host_List_Detection_HOSTS[Asset Tags]),
COUNT(Q_Host_List_Detection_HOSTS[IP]),
SUMX(
VALUES(Q_Host_List_Detection_HOSTS[Asset Tags]),
CALCULATE(COUNT(Q_Host_List_Detection_HOSTS[IP]))
)
)
Mark this as a solution if the issue get's fixed
- maamirkhan20231 year ago
Helper I
same issue
- maamirkhan20231 year ago
Helper I
I use this dax but same issue
IF(ISINSCOPE(Q_Host_List_Detection_HOSTS[Asset Tags]),COUNT(Q_Host_List_Detection_HOSTS[IP]),SUMX(VALUES(Q_Host_List_Detection_HOSTS[Asset Tags]),CALCULATE(COUNT(Q_Host_List_Detection_HOSTS[IP]))))