Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Hierkommtnils
Frequent Visitor

Power BI Matrix one sum stays blank. Why?

Hi, I use to work with data from two different reporting dates in my data model based on the underlying data structure in our database. I have implemented a logic which takes 2023 delivery volumes from report date 31.12.2023 (as this data will not be 100% available in latest report date) and latest report date for >= 2024 deliveries. Here is how it looks in Excel and should be look in PBI as well:

 

Hierkommtnils_0-1721287874331.png

For some reason, the highlighted sum is not shown in PBI. All the other sums and the detail rows are shown correctly.

 

Any idea whats wrong here?

 

I have tried several formulas but non of them fixed this issue. 

Formula at the moment:

 

VOLUME_PHYS_abs = SUMX(SUMMARIZE(FCT_PNL_DEAL,DIM_PAYMENT[SETTLEMENT_TYPE],DIM_PAYMENT[EVENT_SOURCE],FCT_PNL_DEAL[METRIC_DATE],DIM_DEAL_ATTRIBUTE[Fut_For],DIM_DEAL_ATTRIBUTE[BUY_SELL],DIM_TRADE_DATE[TRADE_YEAR], DIM_DELIVERY_END_DATE[DELIVERY_END_YEAR],DIM_PARTY_INTERNAL[BUNIT_NAME], DIM_PAYMENT[CFLOW_TYPE],DIM_DEAL_ATTRIBUTE[INSTRUMENT], DIM_REFERENCE[CASCADING_STATUS],DIM_DEAL_ATTRIBUTE[Intra_Select],DIM_REVAL_TYPE[REVAL_TYPE]),[Abs_VOLUME])
 
It is basically a SUMX SUMMARIZE function which sums up the Meassure "Abs_VOLUME" where I put in all the columns I use to filter or to detail the visulisation in the first part of the formula.
 
BR
Nils

 

 

1 ACCEPTED SOLUTION
v-nuoc-msft
Community Support
Community Support

Hi @Hierkommtnils 

 

For your question, here is the method I provided:

 

The presentation of data in power bi and excel will be different, the style in your screenshot may not be possible, but I have another way for your reference.

 

Here's some dummy data

 

“Table”

vnuocmsft_0-1721374435474.png

 

Create a new table.

 

Table 2 = 
UNION(
SELECTCOLUMNS(
    'Table', 
    "type", 'Table'[type],
    "type_pay", 'Table'[type_pay],
    "year", 'Table'[year],
    "value",SWITCH(TRUE(), 'Table'[year] = 2023, 'Table'[value], 'Table'[year] <> 2023, 0)),
    SELECTCOLUMNS(
    'Table', 
    "type", "_" & 'Table'[type],
    "type_pay", 'Table'[type_pay],
    "year", 'Table'[year],
    "value",SWITCH(TRUE(), 'Table'[year] = 2023, BLANK(), 'Table'[year] <> 2023, 'Table'[value]))
)

 

You can get the table like this.

 

vnuocmsft_1-1721374617088.png

 

Create a matrix.

 

vnuocmsft_3-1721374683929.png

 

Here is the result.

 

vnuocmsft_4-1721374715287.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-nuoc-msft
Community Support
Community Support

Hi @Hierkommtnils 

 

For your question, here is the method I provided:

 

The presentation of data in power bi and excel will be different, the style in your screenshot may not be possible, but I have another way for your reference.

 

Here's some dummy data

 

“Table”

vnuocmsft_0-1721374435474.png

 

Create a new table.

 

Table 2 = 
UNION(
SELECTCOLUMNS(
    'Table', 
    "type", 'Table'[type],
    "type_pay", 'Table'[type_pay],
    "year", 'Table'[year],
    "value",SWITCH(TRUE(), 'Table'[year] = 2023, 'Table'[value], 'Table'[year] <> 2023, 0)),
    SELECTCOLUMNS(
    'Table', 
    "type", "_" & 'Table'[type],
    "type_pay", 'Table'[type_pay],
    "year", 'Table'[year],
    "value",SWITCH(TRUE(), 'Table'[year] = 2023, BLANK(), 'Table'[year] <> 2023, 'Table'[value]))
)

 

You can get the table like this.

 

vnuocmsft_1-1721374617088.png

 

Create a matrix.

 

vnuocmsft_3-1721374683929.png

 

Here is the result.

 

vnuocmsft_4-1721374715287.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.