Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi guys,
I have a question about a Matrix i made in power bi desktop.
I have a matrix with 3 levels of rows:
- 'Fact' [ReferentieFactuurNummer]
- 'Fact'[EntiteitCode]:
- 'Grootboek'[GrootboekrekeningNaam].
The column is 'Fact'[Icopartner'] , where there are 2 Icopartner values: "BFM" and "BTT"
the values of the matrix is a measure: 'Fact'[_Bedrag YTD].
I added column subtotals.
it looks like this:
Now my question is this: I want to filter away all rows, where the subtotal at the first level, so at 'Fact' [ReferentieFactuurNummer] level, is 0.
So no matter what the subtotal is for the underlying row levels 'Fact'[EntiteitCode] and 'Grootboek'[GrootboekrekeningNaam], i don't want to see the lines where the subtotal of [ReferentieFactuurNummer] level, is 0,00.
I tried lots of dax measures but i don't seem to manage to find a solution.
Can anyone help me out?
Thanks!
Solved! Go to Solution.
I solved it by creating a summarized table and than a calculated column where i check if the related field of the new table is zero or not.
I solved it by creating a summarized table and than a calculated column where i check if the related field of the new table is zero or not.
@Greg_Deckler I used your logic and created measure:
thank you
Thank you, but it's a matrix so the values are from measure _bedrag YTD; and the columns are from Icopartner, which can have value BFM or BTT. I tried your suggestion with measure _bedrag YTD, but there are still 0,00 subtotal values...
@Lore_BI You'll have to add some kind of check in your measures that if the summarized data is 0 at the subtotal is 0 then return BLANK() instead of a number. Similar to MM3TR&R and measure totals in general. Let's say you keep your BFM measure, create a new measure BFM2 and use it instead of BFM in your matrix. Maybe something like:
BFM2 =
VAR __Table = SUMMARIZE('Table', [ReferentieFactuurNummer], "__BFM", [BFM])
VAR __Sum = SUMX(__Table, [__BFM])
VAR __Result = IF( __Sum = 0, BLANK(), [BFM])
RETURN
__Result