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

Calculate Delta planning version with planning group segmentation

Hi all,

 

I used the following formula to calculate the delta between to version:

 

Delta =
VAR SelectedVersion= VALUES(Test[Planning version])
VAR Minvalue= MINX(
    SelectedVersion,
    CALCULATE(
        SUM(
            Test[Value])))
VAR Maxvulue= MAXX(SelectedVersion,
    CALCULATE(
        SUM(
            Test[Value])))
VAR Difference = Maxvulue - Minvalue
RETURN
    Difference
   
Dataset:
Planning versionPlanning datePlanning groupeValue
101/01/2022Citybike10
101/01/2022Mountain bike20
101/01/2022Race bike50
101/01/2022Cross bike40
201/01/2022Citybike20
201/01/2022Mountain bike50
201/01/2022Race bike5
102/01/2022Citybike15
102/01/2022Mountain bike25
102/01/2022Race bike55
102/01/2022Cross bike45
202/01/2022Citybike20
202/01/2022Mountain bike50
202/01/2022Race bike5
theunissenp_0-1663848373421.png

 

In the result i am missing the delta for Cross bikes. 

 

Can any one help me? 

 

PBIX file: https://drive.google.com/file/d/1-S9nAhHpFyldQVtlOulMqPLxhhEq8tvP/view?usp=sharing

 

Regards,

 

Paul

1 ACCEPTED SOLUTION

Hi, @Anonymous 

It is recommended to add a separate dimension table:

Planed version = DISTINCT(Test[Planning version])

In the matrix visual, you need replace field 'Planned Version' in fact table with field 'Planned Version' in new dimension table.

veasonfmsft_0-1665392770458.png

Best Regards,
Community Support Team _ Eason

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Is there any one who can help me?

 

Hi, @Anonymous 

It is recommended to add a separate dimension table:

Planed version = DISTINCT(Test[Planning version])

In the matrix visual, you need replace field 'Planned Version' in fact table with field 'Planned Version' in new dimension table.

veasonfmsft_0-1665392770458.png

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

Thanks for your reply. I added the table but the delta formula is not giving any value for the delta for Cross bikes...

 

Delta formula:

Delta =
VAR SelectedVersion=
VALUES('Planed version'[Planning version])
VAR Minvalue=
MINX(
    SelectedVersion,
    CALCULATE(
        SUM(
            Test[Value])))
VAR Maxvulue=
    MAXX(SelectedVersion,
    CALCULATE(
        SUM(
            Test[Value])))
VAR Difference =
    Maxvulue - Minvalue
RETURN
    Difference
   
Thanks for your respons.
 
Regards,
 
Paul
tamerj1
Super User
Super User

Hi @Anonymous 

Asking a question that might drive you to find solution. What is the expected results based on this sample?

Anonymous
Not applicable

Currently, the delta for cross bikes is missing. This is missing because this planning group is not planned in both versions. I want to show it anyway.

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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