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 all!
I have a simple data model with 3 tables.
The Actual Values and Extraction table are linked to the calendar table.
The extraction table contains a snapshot for every Month.
Extraction Year-Week | Article | Value |
2023-Jan | A | 50 |
2023-Jan | B | 60 |
2023-Feb | A | 50 |
Now I would like to create a matrix visual with the individual extractions on rows and
In the end I would like to have such kind visualization:
How would you build the data model and measures for that kind of objective?
Hi @joshua1990
I recommend that you add another table which has distinct extraction months. This table should not be connected to the calendar table so it won't be affected by the calendar table. And disable or delete the relationship between the calendar table and the Exctraction table.
Then create the following measure and add it to the matrix.
Measure = IF(MAX('Date'[Date])<MIN('ExtractionMonths'[Extraction Start Date]),SUM(ActualTable[Value]),SUM('ExctractionTable'[Value]))
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @joshua1990
Yes, you need an additional measure to summarize the total.
Measure 2 = SUMX(SUMMARIZE('Date','Date'[YearMonth],"SumOfValue",[Measure]),[SumOfValue])
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
@v-jingzhang : Thanks a lot, appreciate. But the total (column subtotal) is wrong. It shows me 120 for 2023-Feb
If you need further information, just let me know. I am grateful for any tips that you can share.
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 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
41 | |
32 | |
29 | |
12 | |
12 |