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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

How to Compare One Dimension Member to All Others

Hi, 

I would like to crate the formula that could be able to compare one dimension to the others.

For example, I have a list of campaign here. 

Whenever I choose campaign such as: En-more countries search

I could show me the difference of conversion value of En-more countries seach compared to others. 

En-more countries : 5000 

FR-France search: 2000

so the difference between is 3000.

I want it to be show in bar chart like this, instead of Product-subcategory, in my real case it would be : Campaign. 

For more clarification, when I choose Rubber Bands, it show me the difference Profit of Rubber Bands compared to other Sub-Category in the list.

difference.PNG

 

this is the model of my data : Campagin[column1]: is the uniquie name of the campaign. I link it with the Campaign with the relationship is : many to one. 

model.PNG

 

Hope to you could help. 

Thanks!! 

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can meet your needs by slicer visual and stacked bar chart.

At first, you need to edit your model. You will need to create a slicer based on table “Campaign”. So you don't need to create any relationship related to table “Campaign” because it will filter your result.

Here is my test tables and measure “SUM”.


3-1.PNG

3-3.PNG

 

 

 

 

 

 

 

 

 

SUM =
SUM ( sheet1[Column1] )

You need to create a measure “ComparedResult” .

ComparedResult =
VAR s =
    SELECTEDVALUE ( Campaign[Column1] )
RETURN
    [SUM]
        - CALCULATE ( SUM ( sheet1[Column1] ), sheet1[Campaign] = s )

Now you can create a stacked bar visual and slicer visual.3-2.PNG

Best Regards,

Eads

 

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

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can meet your needs by slicer visual and stacked bar chart.

At first, you need to edit your model. You will need to create a slicer based on table “Campaign”. So you don't need to create any relationship related to table “Campaign” because it will filter your result.

Here is my test tables and measure “SUM”.


3-1.PNG

3-3.PNG

 

 

 

 

 

 

 

 

 

SUM =
SUM ( sheet1[Column1] )

You need to create a measure “ComparedResult” .

ComparedResult =
VAR s =
    SELECTEDVALUE ( Campaign[Column1] )
RETURN
    [SUM]
        - CALCULATE ( SUM ( sheet1[Column1] ), sheet1[Campaign] = s )

Now you can create a stacked bar visual and slicer visual.3-2.PNG

Best Regards,

Eads

 

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

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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