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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
tomas12344
Helper III
Helper III

Dynamic text values base on slicer

HI All

 

I need to create some helper/parametric table. This table should be used as header in matrix visual.

Currently, i have created a table, which i can use as matrix header, but the table is "static", and i need that some values contains text based on some slicers.

the actual table looks like 

Table_1=
{
("1","Actual Forecast"),
("2", "Actual Budget"),
("3", "Forecast previous year"),
("4","Forecast before 2 years")

}
I have a slicer, were the user can select the year(actual) and from this are calculated values for Actual year-1, Actual year-2,...
these values, and other values, are calcualted as measures from other values in table (this could not be calculated in M query, becuase some these values in the table are also calculated base on some filter, slicers,... set by the user).

The question is, how to create the helper/parametrical table, so that some text values contains values base on the slicer selection.  For example, when actual year is selecte 2021 instead of "Forecast previous year" I want to have text "Forecast Year 2020", and "Forecast before 2 years" sould be "Forecast Year 2019".
Wanted to use SELECTEDVALUE, but this not work in table constructor.

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @tomas12344 ,

 

You could consider to create four measures for "Actual Forecast", "Actual Budget", "Forecast previous year" and "Forecast before 2 years".

Then create new measure like below:

measure =
SWITCH (
    SELECTEDVALUE ( Table_1[column] ),
    1, [Actual Forecast],
    2, [Actual Budget],
    3, [Forecast previous year],
    4, [Forecast before 2 years]
)

 

Best Regards,

Jay

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @tomas12344 ,

 

You could consider to create four measures for "Actual Forecast", "Actual Budget", "Forecast previous year" and "Forecast before 2 years".

Then create new measure like below:

measure =
SWITCH (
    SELECTEDVALUE ( Table_1[column] ),
    1, [Actual Forecast],
    2, [Actual Budget],
    3, [Forecast previous year],
    4, [Forecast before 2 years]
)

 

Best Regards,

Jay

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors