Forum Discussion
Issue with Aggregation and Filtering
- 8 months ago
Please share a simplified version of your PBIX file (in English) without sensitive data. You can upload it to a public cloud service like OneDrive, Google Drive, or Dropbox and share the link. This will help in understanding your data structure and the issue, allowing for more precise guidance.
Hi jeeva-chandru ,
If you must aggregate at Quarter/Vertical/Subvertical/GBE/Region level. Try the below measure.
M-AOPTarget =
VAR SummaryTable =
SUMMARIZE(
AOP_EDW_MERGED,
AOP_EDW_MERGED[VERTICAL],
AOP_EDW_MERGED[SUB VERTICAL],
AOP_EDW_MERGED[GBE],
AOP_EDW_MERGED[REGION],
AOP_EDW_MERGED[QUARTER],
"OrderAmount", SUM(AOP_EDW_MERGED[Orders ($M)])
)
RETURN
CALCULATE(
SUMX(SummaryTable, [OrderAmount]),
AOP_EDW_MERGED[VERTICAL] <> "5 - Life Sciences",
REMOVEFILTERS(AOP_EDW_MERGED[SN
APSHOT_DATE])
)
If my response as resolved your issue please mark it as solution and give kudos.