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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
hellyLoft
Frequent Visitor

Remove a data value from a visual but keep the calculation

Hi

 

I am creating a report for a school and will be including one pie chart of all the different registration codes used. I need to inlcude a measure which adds us all the attendance marks (nameed 'All Marks'), if include this measure then all codes %'s are worked out on the chart. I know I could do this with measures for each code but seen as it is only for this is for one visual I wasnt sure if there was an easier way of including the 'All Marks' measure, but hiding it from the pie chart.

 

Is this possible?

 

Thanks for your time

Helen

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @hellyLoft 

 

I am not very clear about your requirement I assume that you want to calculated the percentage for each code according to the visual interaction. I created data to reproduce your scenario.

Table:

b1.png

 

You may create a measure as below.

Percentage = 
DIVIDE(
    SUM('Table'[Value]),
    CALCULATE(
        SUM('Table'[Value]),
        ALLSELECTED('Table')
    )
)

 

Result:

b2.png

 

If i misunderstand your thoughts, please show us some sample data and expected result with OneDrive for business. Thanks.

 

Best Regards

Allan

 

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

Thank you for the reply. I will see if this works with what I was looking for.

 

 

parry2k
Super User
Super User

@hellyLoft I guess you are saying if you filter All Marks , % of other categories (ids) are not calculated correctly? Correct? Can you share sample data and expected output?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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