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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
BradOrders
Frequent Visitor

Using a Parameter Table with a Measure?

Hi all

I am still new to Power BI, and one issue is driving me crazy. I hope you can help ...

I am using a Parameter Table to let the user select a "% Warning Level".
When the Warning Level is selected, I want to display a message in every row in a table where a column value is greater than the selected Warning Level. So for example, if the user selects "200%", then every record with a percent greater than 200% will have a text message displayed in the Measure Column saying "Exceeds Level".

From my understanding, I can't use a Calculated Column, as I want the values to recalculate whenever the user selects a different Warning Level, and Calculated Columns are only recalculated when the data is refreshed.
Whenever I use a Measure, I need to use an aggregator, or I get a "single value cannot be determined" error. If I DO use an aggregator, then the value is not calculated on every row, just the subtotals.

Here is something like what I am trying to achieve:

M_Warning =
IF(
HASONEVALUE(WarningLevels[Warning Level 1]),
IF(SignificantDifference[Change] > VALUES(WarningLevels[Warning Level 1]), "Exceeds Level", "")
,"")

Any advice would be greatly appreciated ...

Thanks!

Brad

1 ACCEPTED SOLUTION
v-haibl-msft
Microsoft Employee
Microsoft Employee

@BradOrders

 

In this scenario, you can add an Index column for the “SignificantDifference” table and then make a small change to your measure formula. Please refer to following steps.

1. Add an Index column in Query Editor.

2. Modify your measure formula as below.

 

M_Warning = 
IF (
    HASONEVALUE ( WarningLevels[Warning Level 1] ),
    IF (
        CALCULATE ( SUM ( SignificantDifference[Change] ) )
            > VALUES ( WarningLevels[Warning Level 1] ),
        "Exceeds Level",
        ""
    ),
    ""
)

 3. Drag a Slicer and Table chart into your canvas.

Using a Parameter Table with a Measure_1.jpg

 

Best Regards,

Herbert

View solution in original post

2 REPLIES 2
BradOrders
Frequent Visitor

Thanks Herbert, that was a great, thorough answer.  Just what I needed ....  🙂

v-haibl-msft
Microsoft Employee
Microsoft Employee

@BradOrders

 

In this scenario, you can add an Index column for the “SignificantDifference” table and then make a small change to your measure formula. Please refer to following steps.

1. Add an Index column in Query Editor.

2. Modify your measure formula as below.

 

M_Warning = 
IF (
    HASONEVALUE ( WarningLevels[Warning Level 1] ),
    IF (
        CALCULATE ( SUM ( SignificantDifference[Change] ) )
            > VALUES ( WarningLevels[Warning Level 1] ),
        "Exceeds Level",
        ""
    ),
    ""
)

 3. Drag a Slicer and Table chart into your canvas.

Using a Parameter Table with a Measure_1.jpg

 

Best Regards,

Herbert

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.