March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have 3 tables related to each other, the first is Total_Pol (here there is monthly frequency data identified as a subgrupo), in the second Category_Total table (there are geological details of subgrupo and other sub-categories) and the third table Master_Total (there is the detail to which grupo each subgrupo belongs to, coordinates, etc).
I joined the tables as follows because they have a lot of data between them.
Although the values come in subgrupo, it is only valid to know the total per month at the grupo level.
I am trying to obtain the number of active groups per month, for which it is considered that if at least one subgroup of each group is greater than 0, the group is considered active.
I used teh current formula:
When i removed the SUBGRUPO FIELD from the table i get this:
And when i removed the GRUPO FIELD i get this:
I would like to have this at the end:
Hope that makes sense! I'd be grateful for any help.
Best Regards,
Solved! Go to Solution.
Hi @NeZ_AL
please try
Count_Group =
SUMX (
CALCULATETABLE (
VALUES ( Master_Total[GRUPO] ),
CROSSFILTER ( Total_Pol[SUBGROUPO], Category_Total[SUBGROUPO], BOTH )
),
IF (
CALCULATE (
SUM ( Total_Pol[VALUE_FIX] ),
CROSSFILTER ( Total_Pol[SUBGROUPO], Category_Total[SUBGROUPO], BOTH )
) > 0,
1
)
)
Hi @NeZ_AL
please try
Count_Group =
SUMX (
CALCULATETABLE (
VALUES ( Master_Total[GRUPO] ),
CROSSFILTER ( Total_Pol[SUBGROUPO], Category_Total[SUBGROUPO], BOTH )
),
IF (
CALCULATE (
SUM ( Total_Pol[VALUE_FIX] ),
CROSSFILTER ( Total_Pol[SUBGROUPO], Category_Total[SUBGROUPO], BOTH )
) > 0,
1
)
)
Thank you very much.
It works perfectly.
Best regards,
Nestor
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |