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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Michael_Gold
Frequent Visitor

CALCULATED TABLE EXPRESSION AS OUTPUT OF A CONDITIONAL STATEMENT

Hello,

 

I am trying to create a dynamic measure or a dynamic table that returns a list of values (based on selection of a parameter)

I wanted to know if there is a way a conditional statement such as IF, SWITCH-TRUE Combo can produce such an output?

 

An example for what I was trying to do:

(Engine value is a parameter for the number of engine)

 

Engine_missing_parts =

 

VAR MISSING_PARTS =

SWITCH( TRUE(),

Engine[Engine Value] = 1, CALCULATETABLE(SELECTCOLUMNS(FILTER ... ,

Engine[Engine Value] = 2, CALCULATETABLE(SELECTCOLUMNS(FILTER ... ,

etc

 

RETURN MISSING_PARTS

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

Hi @Michael_Gold ,

According to your description, we can't create a dynamic table or column changed by the parameter value, it's by design. Calculated table and column can only be computed during data refresh, it does not depend on user interaction in the report. You can refer to this blog for in-depth understanding.

However, we can create a dynamic measure based on the parameter value, I create a sample.

vkalyjmsft_0-1657509899121.png

The measure dynamically varies with the parameter value.

vkalyjmsft_1-1657509993947.png

vkalyjmsft_2-1657510014005.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

View solution in original post

1 REPLY 1
v-yanjiang-msft
Community Support
Community Support

Hi @Michael_Gold ,

According to your description, we can't create a dynamic table or column changed by the parameter value, it's by design. Calculated table and column can only be computed during data refresh, it does not depend on user interaction in the report. You can refer to this blog for in-depth understanding.

However, we can create a dynamic measure based on the parameter value, I create a sample.

vkalyjmsft_0-1657509899121.png

The measure dynamically varies with the parameter value.

vkalyjmsft_1-1657509993947.png

vkalyjmsft_2-1657510014005.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.