Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello good. Do you know why when I use addcolumns and summarize, I can't do a grouped sum (that is, apply summarize again) on the result column of the first summarize?
In short, what I want is to be able to sum the values in the result column ("result" column), but to do so by grouping by category.
Hi @Chris123Terr ,
My Sample is as below.
Data Model:
Code:
Table 2 =
VAR TABLA1 =
ADDCOLUMNS (
SUMMARIZE (
FACT_TABLE,
DIM_PRODCATEGORY[ProductCategory],
DIM_CALENDARIO[MONTH_TEXT_SHORT]
),
"SUMA",
CALCULATE (
DISTINCTCOUNT ( FACT_TABLE[SalesQuantity] ),
FILTER (
FACT_TABLE,
FACT_TABLE[ProductCategory] = EARLIER ( [ProductCategory] )
)
)
)
RETURN
TABLA1
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
95 | |
86 | |
78 | |
72 | |
66 |
User | Count |
---|---|
113 | |
105 | |
84 | |
65 | |
64 |