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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.