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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
rahmad
Frequent Visitor

Plan and Actual Comparision with different plan versions.

my data is like following , How can i made comparision of Acutla and Plan [with selected version]

 

Account TypeVersionValue typeAcutal AmountPlan AmountData
Revenue 1Actual1000 01/07/2023
Revenue AB1Plan 500001/07/2023
RevenueLF1Plan 

4000

01/07/2023
RevenueLF2Plan 350001/07/2023
Revenue LF3Plan 320001/07/2023

 

 

 

1 ACCEPTED SOLUTION
rahmad
Frequent Visitor

It is working now, as we create the slicer from the data table instead of Version table.

View solution in original post

8 REPLIES 8
v-kongfanf-msft
Community Support
Community Support

Hi @rahmad ,

 

I tried the formula you provided and ACTUAL doesn't go away with slicer.

plan_ =
CALCULATE (
    SUM ( 'Table'[Plan Amount] ),
    FILTER ( 'Table', 'Table'[Value type] = "Plan" )
)
actual_ =
CALCULATE (
    SUM ( 'Table'[Acutal Amount] ),
    'Table'[Version] = "1"
        && 'Table'[Value type] = "Actual"
)

vkongfanfmsft_0-1708395494266.png

Best Regards,
Adamk Kong

 

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

It is not working at my end. as i select the plan version , the actual amounts disappeared.

 

Hi @rahmad ,

 

Please provide screenshot information and describe it.

 

Best Regards,
Adamk Kong

 

 

Following are the screen shots. The first image showing both Actual and Plan columns without any selection of version.

and other image showing only plan version when i select plan version LF1.

Without selection of version.pngWith Plan version selection.png

rahmad
Frequent Visitor

It is working now, as we create the slicer from the data table instead of Version table.

rahmad
Frequent Visitor

I created two mearures Actual and Plan  as follows

 

Actual = CALCULATE(sum(Data[Actual Current]),Data[Value]="Actual" && Data[Version]="1" )
Plan = CALCULATE(sum(Data[Plan Current]), FILTER(Data, Data[Value]="Plan"))
 
And add a slicer of Version, when i select any plan version, then actual data disappeared.
 
 
 
amitchandak
Super User
Super User

@rahmad , Create measures like

 

Calculate(SUm(Table[Acutal Amount]), Table[Value type] ="Actual" && [Version] ="1" ) -Calculate(SUm(Table[Plan Amount]), filter(Table, Table[Value type] ="Budget"))

 

Create Version slicer and use that.  Rest all filters should apply

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

it is not working

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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