Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello everyone,
I could use your help, because currently as you can see in the table my last column the inside is good, but the grand total is wrong. It's supposed to return 1.
Here are the measurements:
Nombre d'agents servis, conjoints inclus: =CALCULATE((DISTINCTCOUNT(GESTION[C_NUM_AGENT])),GESTION[BO_DOSSIER_SERVI]=TRUE)+CALCULATE(CALCULATE(DISTINCTCOUNT(GESTION[C_NUM_CONJOINT]),GESTION[C_NUM_CONJOINT]<>BLANK()),GESTION[BO_DOSSIER_SERVI]=TRUE)
Nombre d'agents servis annulés, conjoints inclus:=CALCULATE((DISTINCTCOUNT(GESTION[C_NUM_AGENT])),GESTION[BO_DOSSIER_SERVI_ANNULE]=TRUE)+CALCULATE(CALCULATE(DISTINCTCOUNT(GESTION[C_NUM_CONJOINT]),GESTION[C_NUM_CONJOINT]<>BLANK()),GESTION[BO_DOSSIER_SERVI_ANNULE]=TRUE)
Nombre d'agents servis nets, conjoints inclus old:= [Nombre d'agents servis, conjoints inclus] - [Nombre d'agents servis annulés, conjoints inclus]
It seems like you're encountering an issue with the grand total calculation in your table. The problem could be due to the way your measure for "Nombre d'agents servis nets, conjoints inclus old" is calculated.
From your description, it appears you're trying to subtract the count of agents who have been served from the count of agents who have been served but subsequently canceled.
Here's a suggestion to modify your measure:
Nombre d'agents servis nets, conjoints inclus old :=
CALCULATE(
DISTINCTCOUNT(GESTION[C_NUM_AGENT]),
GESTION[BO_DOSSIER_SERVI] = TRUE
)
+ CALCULATE(
DISTINCTCOUNT(GESTION[C_NUM_CONJOINT]),
GESTION[C_NUM_CONJOINT] <> BLANK(),
GESTION[BO_DOSSIER_SERVI] = TRUE
)
- (
CALCULATE(
DISTINCTCOUNT(GESTION[C_NUM_AGENT]),
GESTION[BO_DOSSIER_SERVI_ANNULE] = TRUE
)
+ CALCULATE(
DISTINCTCOUNT(GESTION[C_NUM_CONJOINT]),
GESTION[C_NUM_CONJOINT] <> BLANK(),
GESTION[BO_DOSSIER_SERVI_ANNULE] = TRUE
)
)
This calculation ensures that you are counting distinct agents served and distinct agents served as conjoints, and then subtracting the count of agents canceled along with the count of canceled conjoints. Ensure that you're subtracting the correct counts and using the appropriate filters to get the desired result. This should help in fixing the issue with your grand total.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.
Join 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.
User | Count |
---|---|
10 | |
6 | |
4 | |
3 | |
3 |
User | Count |
---|---|
11 | |
11 | |
8 | |
8 | |
8 |