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
Hi,
I'm trying to get the monthly values for a measure i created but it only shows the total for every month. If i remove the ALLEXCEPT condition it works fine.
Example:
| Measure with ALLEXCEPT | Measure without ALLEXCEPT | |
| 2023-Jan | 200 | 50 |
| 2023-Feb | 200 | 150 |
| Total | 200 | 200 |
Measure:
What can i change in order to work properly?
Kind regards,
Pedro
Hi @PKostta ,
Please try this:
v_Count_CLCL_ID_BASE = CALCULATE(
DISTINCTCOUNT(RAID_ClaimsDrivers_LINE[CLCL_ID]),
FILTER(
ALL(RAID_ClaimsDrivers_MEME),
RAID_ClaimsDrivers_MEME[CALC_SEGMENTO] = "INDIVIDUAL"
|| RAID_ClaimsDrivers_MEME[CALC_SEGMENTO] = "MICROS"
|| RAID_ClaimsDrivers_MEME[CALC_SEGMENTO] = "TAILOR MADE"
),
FILTER(
ALL(RAID_ClaimsDrivers_MEME),
RAID_ClaimsDrivers_MEME[CALC_REDE] = "MED1"
),
KEEPFILTERS(
FILTER(
ALL(RAID_ClaimsDrivers_CLCL[COBERTURA], RAID_ClaimsDrivers_CLCL[Cobertura_Filter]),
RAID_ClaimsDrivers_CLCL[CLCL_PAY_PR_IND] = "P"
)
)
)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |