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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
KN_HEALT47
Frequent Visitor

Repeating numbers in drill down when lower level of data not available

KN_HEALT47_0-1617827680037.png

I am trying to compare actual invoices to budgeted amounts. I have the invoice data available at a very transactional level whereas we budget at a more aggregate level. I would like to know if there is a way to still be able to see the invoice amounts contributing to the "amount" column but not have the budgeted amount repeat for every line of the invoice? You can see that 208.33 repeats everytime there is a professional service invoice.   Preferably it would be blank except for the subtotal.

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@KN_HEALT47 

What is the table and field name where the item '2694960' is sitting?  Basically, what it the field name that holds the lowest level of detail you are showing in your visual?  I am going to make it up and call it 'Transaction Table'[Invoice Header].
In your budget measure you can use ISINSCOPE to check if you are at too low a level and return blank.
If your original budget measure is like this.

 

Budget = SUM ( 'Budget Table'[Budget Amount] )

 

Your new measure would be like this.

 

Budget =
IF (
    ISINSCOPE ( 'Transaction Table'[Invoice Header] ),
    BLANK (),
    SUM ( 'Budget Table'[Budget Amount] )
)

 

 

View solution in original post

3 REPLIES 3
jdbuchanan71
Super User
Super User

@KN_HEALT47 

What is the table and field name where the item '2694960' is sitting?  Basically, what it the field name that holds the lowest level of detail you are showing in your visual?  I am going to make it up and call it 'Transaction Table'[Invoice Header].
In your budget measure you can use ISINSCOPE to check if you are at too low a level and return blank.
If your original budget measure is like this.

 

Budget = SUM ( 'Budget Table'[Budget Amount] )

 

Your new measure would be like this.

 

Budget =
IF (
    ISINSCOPE ( 'Transaction Table'[Invoice Header] ),
    BLANK (),
    SUM ( 'Budget Table'[Budget Amount] )
)

 

 

Its been a few months but I wanted to know if you could help me take this further:

 

I wrote this measure with your help: 

YTD Budget =
IF(OR(ISINSCOPE(Expenses[partner_name]),ISINSCOPE(Expenses[VendorJA])), BLANK(),CALCULATE(SUM(Budget[Amount]), MONTH(Budget[Merged Month Year]) <= MONTH(TODAY())-1))
 
and the result is this:
 
KN_HEALT47_0-1625784085549.png

I like that the invoice detail is blank for the parts of the budget that do not have this detail the problem is that the YTD budget is aggregating on repeat for each account line ( see 50001 Payroll). Idealy the total budget YTD would populate for 50001 payroll only and so on for each account and 493,604.01 would only be the total at the bottom. Both budget and Actuals share the account detail, only budget does not go further down into invoice and vendor name. Let me know if there is a way to modify the dax to include this! Thanks in advance.

 
 

Thank you! That worked perfectly. The budget amount was a field from a query so I just created a measure to capture the If(ISINSCOPE()) Function.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors