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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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