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
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
Anonymous
Not applicable

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.

 

Anonymous
Not applicable

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

Share with Power BI Enthusiasts: 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
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