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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Evanpooley_2
New Member

Add another Filter

Hello, 

Im new to Power- Bi and im looking to add a visual filter to my already exciting DAX

 I dont want to have to apply the filter to my Graph as it is now i want it to already show that final value

Below is what i currently have

 

Graph.PNG

 

This is my created Mesure that i would like to add a STUID filter to get the results above (without the visual filter)

 

Score divided by Count of classcode =
DIVIDE(
    SUM('SB_STAGING_ASSESSMENT_RESULTS_UNIQUE'[Score]),
    DISTINCTCOUNT('SB_STAGING_ASSESSMENT_RESULTS_UNIQUE'[classcode])
)
 

The math would go something like this

Total Score DIVIDE Classcode for each student

At the moment most things i have tried divide by all the classcodes not the ones specific to the students

Any help is appreciated!

Thanks

 

 

  

 

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @Evanpooley_2 

 

I'd like to suggest you try the following measure to see if it helps.

Score divided by Count of classcode =
CALCULATE (
    DIVIDE (
        SUM ( 'SB_STAGING_ASSESSMENT_RESULTS_UNIQUE'[Score] ),
        DISTINCTCOUNT ( 'SB_STAGING_ASSESSMENT_RESULTS_UNIQUE'[classcode] )
    ),
    ALLEXCEPT (
        'SB_STAGING_ASSESSMENT_RESULTS_UNIQUE',
        'SB_STAGING_ASSESSMENT_RESULTS_UNIQUE'[Student Name]
    )
)

 

Best Regards

Allan

 

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

View solution in original post

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

Hi, @Evanpooley_2 

 

I'd like to suggest you try the following measure to see if it helps.

Score divided by Count of classcode =
CALCULATE (
    DIVIDE (
        SUM ( 'SB_STAGING_ASSESSMENT_RESULTS_UNIQUE'[Score] ),
        DISTINCTCOUNT ( 'SB_STAGING_ASSESSMENT_RESULTS_UNIQUE'[classcode] )
    ),
    ALLEXCEPT (
        'SB_STAGING_ASSESSMENT_RESULTS_UNIQUE',
        'SB_STAGING_ASSESSMENT_RESULTS_UNIQUE'[Student Name]
    )
)

 

Best Regards

Allan

 

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

Ashish_Mathur
Super User
Super User

Hi,

Your question is not clear.  Share a simple dataset and show the result in a simple Table.  Once the Table is ready, we can always switch to any visual.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Try adding an ALLEXCEPT() filter modifier to your measure.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.