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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
venriquez
Regular Visitor

Issue with Graphic not showing correct number from table

Help!!!!

I am not new to Power BI, but I am new to DAX. I have a KPI table that is broken down by counties and organization. One KPI is 50% of each counties trainings needs to result in a credential. Then the overall organizational credential rate is also 50%. That means on the dashboard I can't just total and use the maximum for the default graphic. I need the default to be the organizational total, then I have a slicer to show the individual counties. I can not get the default to show the organizational total. What am I missing? This is the graphic showing, it is currently showing whichever county has the highest credential rate. 

venriquez_0-1663951640067.png

 

venriquez_1-1663951640070.png

 

 

This is the table with the data. I want the graphic to show the Michigan Works Southeast credential rate as a default no matter what the rate is. Any assistance would be most helpful. I have tried many different things and nothing has worked. As of right now, I have had to include the Michigan Works Southeast as an option in the slicer but I don't want to have it there. 

 

venriquez_2-1663951640071.png

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @venriquez ,

I created a sample pbix file(see attachment) for you, please check whether that is what you want.

1. Create a service center dimension table as below and apply the field [Service Center] on the slicer

Service Centers = 
CALCULATETABLE (
    VALUES ( 'Table'[Service Center] ),
    FILTER ( 'Table', 'Table'[Service Center] <> "Michigan Works Southeast" )
)

yingyinr_1-1664175570898.png

2. Create a measure as below to get the credential rate base on slicer selection

Rate = 
VAR _selmwkscrate =
    CALCULATE (
        MAX ( 'Table'[Credential Rate] ),
        FILTER ( 'Table', 'Table'[Service Center] = "Michigan Works Southeast" )
    )
RETURN
    IF (
        ISFILTERED ( 'Service Centers'[Service Center] ),
        CALCULATE (
            SUM ( 'Table'[Credential Rate] ),
            FILTER (
                'Table',
                'Table'[Service Center] IN ALLSELECTED ( 'Service Centers'[Service Center] )
            )
        ),
        _selmwkscrate
    )

yingyinr_2-1664175731150.png

 

If the above one can't help you get the desired result, please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result base on your provided data. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

yingyinr_0-1664175504683.png

Best Regards

View solution in original post

venriquez
Regular Visitor

Thank you so much this works perfectly.

View solution in original post

4 REPLIES 4
venriquez
Regular Visitor

Thank you so much this works perfectly.

Anonymous
Not applicable

Hi @venriquez ,

I created a sample pbix file(see attachment) for you, please check whether that is what you want.

1. Create a service center dimension table as below and apply the field [Service Center] on the slicer

Service Centers = 
CALCULATETABLE (
    VALUES ( 'Table'[Service Center] ),
    FILTER ( 'Table', 'Table'[Service Center] <> "Michigan Works Southeast" )
)

yingyinr_1-1664175570898.png

2. Create a measure as below to get the credential rate base on slicer selection

Rate = 
VAR _selmwkscrate =
    CALCULATE (
        MAX ( 'Table'[Credential Rate] ),
        FILTER ( 'Table', 'Table'[Service Center] = "Michigan Works Southeast" )
    )
RETURN
    IF (
        ISFILTERED ( 'Service Centers'[Service Center] ),
        CALCULATE (
            SUM ( 'Table'[Credential Rate] ),
            FILTER (
                'Table',
                'Table'[Service Center] IN ALLSELECTED ( 'Service Centers'[Service Center] )
            )
        ),
        _selmwkscrate
    )

yingyinr_2-1664175731150.png

 

If the above one can't help you get the desired result, please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result base on your provided data. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

yingyinr_0-1664175504683.png

Best Regards

Thank you this works perfectly!

lbendlin
Super User
Super User

In the measure that drives your visual you can include a REMOVEFILTERS([Service Centers])  filter context modifier.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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