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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
BlueAndOrange24
Frequent Visitor

Summarize based on slicer selections that have difference measures

My scenario is I have a slicer that references a table for regions. There is a separate table that lists values for both a budget cost amount and an actual cost amount per region.
 
If the region slicer is equal to "unallocated" I want the result to display the actual cost amount which varies from month to month.
 
If the region is not equal to "unallocated" then I want the fixed budget amount to display. 
 
The issue I'm having a hard time accounting for in the measure is if any combination of unallocated and non uanllocated are selected. When this happens I want the summary to display budget and actuals based on the slicer options selected using the scenarios above. Right now its all defaulting to the budget value. My formula is below along with the sample slider options.
 
Delivered & Planned =
VAR slicer = SELECTEDVALUE(T_NewPlatformList[Allocation])
RETURN if([Actual Value $] > [Budget Value $] && al = "Unallocated", [Actual Value $], [Budget Value $])
 
Region
Americas
South America
EMEA
Unallocated
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @BlueAndOrange24 

First, I've created the following sample data:

vjianpengmsft_0-1724302985260.png

To simulate the situation, I've created the following two measures:

Actual Value $ = SUM('Values'[Actual Value $1])
Budget Value $ = SUM('Values'[Budget Value $1])

As you described, you can create a measure with your DAX expression to switch individual measures based on the slicer, but when you select Unallocated and any other region, you want to display both the Actual Value $ and Budget Value $ measures.
This is displayed directly through the measure and is not currently supported.
Here's a better way to deal with this mix.

With the above two metrics in place, I create a field parameter:

vjianpengmsft_1-1724303371124.png

Add these two measures to the field parameter:

vjianpengmsft_2-1724303404725.png

We get a table of parameter:

vjianpengmsft_3-1724303520804.png

We need to add the region to this table and modify the DAX expression as follows:

Parameter = 
{
    ("Actual Value $", NAMEOF('Values'[Actual Value $]), 0,"Unallocated"),
    ("Budget Value $", NAMEOF('Values'[Budget Value $]), 1,"Americas"),
    ("Budget Value $", NAMEOF('Values'[Budget Value $]), 1,"EMEA"),
    ("Budget Value $", NAMEOF('Values'[Budget Value $]), 1,"South America")
}

vjianpengmsft_4-1724303589715.png

Let's build a slicer with the value4 column:

vjianpengmsft_5-1724303660860.png

Use the Parameter column and the Region and Month columns in the values table to build a table visual:

vjianpengmsft_6-1724303682166.png

The result is as follows:
When I select not equal to unallocated in the slicer, Budget Value $ is displayed.

vjianpengmsft_8-1724304042418.png

 


When I select equal to unallocated displays Actual Value $ .

vjianpengmsft_9-1724304054407.png

 


Budget Value $ and Actual Value $ are displayed when I select any combination of unallocated and other regions.

vjianpengmsft_10-1724304070428.png

If you also want to filter out the region of the table by slicer, you can create a new measure:

Is seleted region? = 
VAR _current_region = VALUES(Parameter[Value4])
RETURN IF(SELECTEDVALUE('Values'[Region]) IN _current_region,1,0)

Place this measure at the visual level in the filter panel and set it to a value of 1:

vjianpengmsft_11-1724304186360.png

vjianpengmsft_12-1724304205834.png

I've provided the PBIX file used this time below.

 

 

Best Regards

Jianpeng Li

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

 

 

 

 

 

 

 

 

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi, @BlueAndOrange24 

First, I've created the following sample data:

vjianpengmsft_0-1724302985260.png

To simulate the situation, I've created the following two measures:

Actual Value $ = SUM('Values'[Actual Value $1])
Budget Value $ = SUM('Values'[Budget Value $1])

As you described, you can create a measure with your DAX expression to switch individual measures based on the slicer, but when you select Unallocated and any other region, you want to display both the Actual Value $ and Budget Value $ measures.
This is displayed directly through the measure and is not currently supported.
Here's a better way to deal with this mix.

With the above two metrics in place, I create a field parameter:

vjianpengmsft_1-1724303371124.png

Add these two measures to the field parameter:

vjianpengmsft_2-1724303404725.png

We get a table of parameter:

vjianpengmsft_3-1724303520804.png

We need to add the region to this table and modify the DAX expression as follows:

Parameter = 
{
    ("Actual Value $", NAMEOF('Values'[Actual Value $]), 0,"Unallocated"),
    ("Budget Value $", NAMEOF('Values'[Budget Value $]), 1,"Americas"),
    ("Budget Value $", NAMEOF('Values'[Budget Value $]), 1,"EMEA"),
    ("Budget Value $", NAMEOF('Values'[Budget Value $]), 1,"South America")
}

vjianpengmsft_4-1724303589715.png

Let's build a slicer with the value4 column:

vjianpengmsft_5-1724303660860.png

Use the Parameter column and the Region and Month columns in the values table to build a table visual:

vjianpengmsft_6-1724303682166.png

The result is as follows:
When I select not equal to unallocated in the slicer, Budget Value $ is displayed.

vjianpengmsft_8-1724304042418.png

 


When I select equal to unallocated displays Actual Value $ .

vjianpengmsft_9-1724304054407.png

 


Budget Value $ and Actual Value $ are displayed when I select any combination of unallocated and other regions.

vjianpengmsft_10-1724304070428.png

If you also want to filter out the region of the table by slicer, you can create a new measure:

Is seleted region? = 
VAR _current_region = VALUES(Parameter[Value4])
RETURN IF(SELECTEDVALUE('Values'[Region]) IN _current_region,1,0)

Place this measure at the visual level in the filter panel and set it to a value of 1:

vjianpengmsft_11-1724304186360.png

vjianpengmsft_12-1724304205834.png

I've provided the PBIX file used this time below.

 

 

Best Regards

Jianpeng Li

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

 

 

 

 

 

 

 

 

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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