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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
I have a total of a measure and want to sum this by an other column.
I have the following table.
ID Status Type Name Value
123 | accept | yes | yellow | 12 |
123 | accept | yes | 10 | |
456 | not possible | standard | green | 7 |
456 | not possible | standard | 3 | |
789 | not possible | standard | green | 22 |
135 | accept | no | 8 |
With the following formula I get the total of rows = 4
ID Status Type Name Value
123 | accept | yes | yellow | 12 |
456 | not possible | standard | green | 7 |
789 | not possible | standard | green | 22 |
135 | accept | no | 8 |
Whath is the number you want to count and the total sum amount you want to have?
Is it the one that you share has a result table:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsSorry I made a mistake. The value column isnt relevant anymore.
All I have to do is use the measure and multiply by 34.
So I want to use a new measure with first use the filters and then distinct.
Hi @Tinus1905
Actually I hcan not understand the explanation of the latest post completely.
IF possible, please provide more explanation of the details and please provide the your expected outcome.
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Tinus1905According to your filter condition (tableA[Type] = "yes" || tableA[Type] = "no"), Both 123 id should come into play but distinct count eleminate one of them. Why it consider 12, why not it considering 10. 10 has equal chance as 12.
Hi @Tinus1905 ,
For this you need to use SUMX something similar to this:
SUM =
SUMX ( FILTER(tableA,
(tableA[Type] = "yes" || tableA[Type] = "no") ||
(tableA[Status] = "not possible" &&
tableA[Name] = "green"),
), tableA[Value])
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThe outcome = BLANK. And I dont see where the column ID is beeing grouped or distinctcount?
Hi @Tinus1905 ,
In my mockup it's returning the value altough be aware that since your filter context includes yes and no the total is 51 because it has 10 and 12 for id 123
In this case you do not need the distinct since you are calculating the values of the sum and not the ID per each one you are at a row level filter context.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsJoin the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.