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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
robleek100
Frequent Visitor

How to apply slicer on the calculated column value

Hi,

 

I have running data in table, I have created few measure and calculated column. In Calculated column I have compared value is greater than X column if yes then "Limit Exceeded" Else "Under Limit".

 

I have pulled those measure into that Matrix visualizaton now I want to apply Slicer based on the Calculated column which has Limit Exceeded and Under Limit values.

 

When I apply slicer Its pulled out entire table data instead of the visualiztion data which has filter result. I want my slicer to be used on the filter data rather than pulling entire data.

 

 

-------

 

Filtered Data Below (6 rows returned)

 

Slicer (When I choose Limit Exceeded from the slicer then it should show only red highlighted data)

When I choose Under Limit it should show only two results i.e. B & C.

 

Table – Data in a Table

Slicer on filtered columnSlicer on filtered column

 

Thanks,

Rob

1 ACCEPTED SOLUTION

Hi @robleek100,

 

Based on your sample, I found that your issue may caused by the measure Credit Status and the calculated column Credit Limit Status.

 

The measure always calcuated the Aggregate value but the calculated column not. So when you select the calcuated column, it will not filter the aggregate value only the row context.

 

Please create a new calculated table to get the aggregate value, then calculated columns and the measure with the formulas below.

 

Table =
SUMMARIZE (
    'Sheet1',
    'Sheet1'[Cust Name],
    "max of C", MAX ( 'Sheet1'[Cust. Exp] ),
    "sum ub", CALCULATE ( SUM ( 'Sheet1'[UB] ) ),
    "sum qu", CALCULATE ( SUM ( Sheet1[Quote Net Value] ) ),
    "max of credit limit", CALCULATE ( MAX ( 'Sheet1'[Credit Limit] ) )
)
option = IF([UB+QU]>[max of credit limit],"Limit Exceeded","Under Limit")

UB+QU = 'Table'[sum qu]+[sum ub]

Measure 2 = 
VAR a =
    CALCULATE ( MAX ( 'Table'[UB+QU] ) )
VAR b =
    CALCULATE ( MAX ( 'Table'[max of credit limit] ) )
RETURN
    IF ( b < a, "Red", "White" )

Here is the output.

 

 Untitled.png

 

More details, please refer to the attachement.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @robleek100,

 

 

By my test with creating a calculated column similar to yours, but I cannot reproduce your issue.

 

Untitled.png

 

If it is convenient, could you share a dummy pbix file which can reproduce the issue, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

You also could refer to my attachment.

 

Best  Regards,

Cherry

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

Hi @robleek100,

 

Based on your sample, I found that your issue may caused by the measure Credit Status and the calculated column Credit Limit Status.

 

The measure always calcuated the Aggregate value but the calculated column not. So when you select the calcuated column, it will not filter the aggregate value only the row context.

 

Please create a new calculated table to get the aggregate value, then calculated columns and the measure with the formulas below.

 

Table =
SUMMARIZE (
    'Sheet1',
    'Sheet1'[Cust Name],
    "max of C", MAX ( 'Sheet1'[Cust. Exp] ),
    "sum ub", CALCULATE ( SUM ( 'Sheet1'[UB] ) ),
    "sum qu", CALCULATE ( SUM ( Sheet1[Quote Net Value] ) ),
    "max of credit limit", CALCULATE ( MAX ( 'Sheet1'[Credit Limit] ) )
)
option = IF([UB+QU]>[max of credit limit],"Limit Exceeded","Under Limit")

UB+QU = 'Table'[sum qu]+[sum ub]

Measure 2 = 
VAR a =
    CALCULATE ( MAX ( 'Table'[UB+QU] ) )
VAR b =
    CALCULATE ( MAX ( 'Table'[max of credit limit] ) )
RETURN
    IF ( b < a, "Red", "White" )

Here is the output.

 

 Untitled.png

 

More details, please refer to the attachement.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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