Forum Discussion
139068
2 years agoRegular Visitor
DAX Help
Need help with what I think is a simple DAX formula. I have a visual that looks like this. The count field is ia measure I defined in a DAX formula that defines the count field as either 1 or 0. F...
- 2 years ago
Hi,
May be your Count measure can be modified to get the correct total but since i do not know what that measure is, try this one
Measure = IF(HASONEVALUE(Data[District]),[Count],SUMX(VALUES(Data[District]),[Count]))
Hope this helps.
- 2 years ago
You are welcome. If my previous reply helped, please mark that as Answer.
vicky_
2 years agoSuper User
Try something like the formula:
New Count = IF(HASONEVALUE(Table[District]),
[Count],
SUMX(
ADDCOOLUMNS(
SUMMARIZE(Table, [Country], [District]), "count measure", [Count]
),
[count measure])
)