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
Hi,
I have a problem that i´ve been struggling with.
I want to create a preaggregated calculated table from 1 fact table and 2 dimensions.
Fact
FactKey | Account | Amount | CostCenterId |
1 | 35100 | 10 | 22334 |
2 | 34000 | 200 | 66789 |
3 | 93220 | 300 | 66789 |
4 | 93220 | 150 | 66789 |
DimReport
Report | ReportRow | Account |
Rapport129 | 129/* CM | 35100 |
Rapport129 | 129/* CM | 34000 |
Rapport129 | 129/* CM | 93220 |
DimCostCenter
CostCenterId | CostCenterName |
22334 | xy |
66789 | op |
My desired output in calculated table is this:
I have tried with ADDCOLUMNS and SUMMARIZE but i only manage to get columns from one dimension and sum of fact columns. I want to have columns from 2 dimensions( Report and CostCenter) and sum of fact columns.
Solved! Go to Solution.
also try this:
You will probably get more replies in you post this in the DAX section.
https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/bd-p/DAXCommands
Anyway, if you can access Power Query editor, using the function Group By to aggregate, and Merge to add those columns from dimension, will be easier.
Thank you so much for your reply! Yes i realize im in the wrong section 🙂 Im working with a tabular model in Visual studio so i can´t access the Power Query editor.
also try this:
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 |
---|---|
40 | |
26 | |
17 | |
11 | |
10 |
User | Count |
---|---|
57 | |
52 | |
23 | |
13 | |
11 |