Problem with actuals vs budget

cajste

Board Regular
Joined
Oct 22, 2012
Messages
67
Hi,

I've built a analysis modell for actuals vs budget. My boss wants to be able to see the verification text for the actuals while still having having the budget figurrs in the same pivot. The verification text is in the fact_Actuals and because of that I get an error in the Budget column, the budget value for that account repeats for all verification text rows. How do I solve that problem?

Example below.

Thanks,
Caj


AccountAccountNameVerifacation textActualBudget
4000AAAAAAAA25150
BBB150
CCC150
DDD25150
Total50150

<tbody>
</tbody>
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
.
If 'hiding' and 'unhiding' those rows relative to contents in Col D will not alter the data display, you can try this :

Place two command buttons on your worksheet. Assign one to the HidebyVal() macro and the other button to the UnHide() macro.

Code:
Option Explicit


Sub HidebyVal()
Dim i As Integer
    For i = 2 To 300  '<-- adjust this to the total number of rows on your sheet.
        If Cells(i, 4).Value = "" Then
            Cells(i, 4).EntireRow.Hidden = True
        End If
    Next
End Sub


Sub UnHide()
Dim i As Integer
'MsgBox "Unhiding"
    For i = 2 To 300   '<-- adjust this to the total number of rows on your sheet.
        If Cells(i, 4).Value = "" Then
            Cells(i, 4).EntireRow.Hidden = False
        End If
    Next i


End Sub
 
Upvote 0
Thanks! Since I want to use this in Power BI I guess a macro won't solve the problem. I'm pretty sure I've seen a DAX-solution to this problem somewhere but I can't find. Anyone have any ideas?

Thanks!
Caj
 
Upvote 0
I apologize for my oversight. Did not see you were working in Power BI.

Best wishes
 
Upvote 0
Thanks! Been looking at that before but did not get it to work. Solved the problem now by setting up an extra dimension table.
 
Upvote 0
Another potential way to solve is to do this for the Budget number:

Code:
Budget Measure := IF ( NOT( HASONEFILTER( table[Verifacation Text] ) ), sum( table[Budget Column] ) )

This will only display 'Budget' in the 'Total' row. ( or you can try ISFILTERED instead depending on your circumstances.
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,021
Members
449,060
Latest member
LinusJE

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top