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
Emiliano
Regular Visitor

SWITCH

I'm using the following formula to populate a specific column of a table:

Limite = SWITCH('Tabella FIP CDA'[ordine];3;[Bond];2;[Corporate])
Tha tabe has 3 colums: ordine( constant numbers from 1 to 26), Limite, Data (each end of month of last 2 year)
Bond and Corporate are 2 measure time dipendent but they don't change when I change the year in filter page why?
If I put Bond and Corporate in another table they change with time so I can'be a problem of that measures but It's probably specific of the function SWITCH.
Thanks in advance
1 ACCEPTED SOLUTION

I got the solution bymyself it's enough to use SWITCH(TRUE()

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

HI @Emiliano ,

Did you mean you are try to create a calculated column to use switch to check current row and return measure result?

If this is a case, power bi not support to use slicer/filter to create a dynamic calculated column.
Measure are calculated based on its row contents, if you use it in calculated column. Its row contents will be fixed as whole table and return static result.

Regards,

Xiaoxin Sheng

The measures are calculated outside table with data outside the table but they are only put in the table in each rows with function SWITCH (each row has a different measure) and they have to change with time filter but the don't. 

Anonymous
Not applicable

Hi @Emiliano ,

Can you please share some sample data with export result to help us clarify your scenario?

Regards,
Xiaoxin Sheng

I got the solution bymyself it's enough to use SWITCH(TRUE()

Helpful resources

Announcements
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.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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