Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
25 | |
18 | |
17 | |
16 | |
16 |
User | Count |
---|---|
28 | |
27 | |
18 | |
14 | |
13 |