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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
michaelu1
Advocate II
Advocate II

Help with Switch measure

Hi,

 

I'm trying to write a switch measure to look at my income statment names and swap in either the totals for those lines or subtotal measures that I created, however, the subtotals aren't working.

 

Here you can see that CurrentItem is correctly identifiying all the lines:

 

Item.PNG

Here you can see how it skips the subtotal when I run the result:

Result.PNG

And here you can see what just the income looks like:

Inc.PNG

  

The Income measure essentially adds up the 3 lines shown to get a total, (If I put it in a card I get 514) however, I'm at a loss why its not putting that total on the Total Income line when I run the result.

 

Thank you!

1 ACCEPTED SOLUTION
michaelu1
Advocate II
Advocate II

For those interested, I figured out the solution.

 

Since the template was mapped to my main mapping table, PBI automatically filtered my template based off its relationship to the main mapping table.

 

As soon as I deleted that relationship, converting the template to a disconnected table, the switch measure worked perfectly. [Since the switch measure was only looking for specfic wording there was no need to relate it to the main map.]

View solution in original post

3 REPLIES 3
michaelu1
Advocate II
Advocate II

For those interested, I figured out the solution.

 

Since the template was mapped to my main mapping table, PBI automatically filtered my template based off its relationship to the main mapping table.

 

As soon as I deleted that relationship, converting the template to a disconnected table, the switch measure worked perfectly. [Since the switch measure was only looking for specfic wording there was no need to relate it to the main map.]

vanessafvg
Super User
Super User

how is your data strutured in the table?  can you screenshot your model?  If you able to share your pbix that would be best. 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Here is the structure.

 

The template table maps to Mapping which includes every one of our account numbers and classifies them to the different catagories.

 

 I currently do not have a pbix file that I can share 😞

 

Structure.PNG

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.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors