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
MikeyD
Frequent Visitor

Dax Help

Hi All,

 

I was hoping you could help me on creating a Dax Expression as i'm new to DAX Commands.

 

I'm trying to Filter out a specific name in column called 'Intervention' and another name in 'Population' and return a percentage based on a GroupCount column. So far I have this but it's not returning the percent that i'm expecting:

 
VAR RN = SUMX(Filter(Spreadsheetname,Spreadsheetname[Population]= "Local" && Spreadsheetname[Intervention] = "Jab"),SpreadsheetName[Indate])
VAR GP = SUMX(Filter(Spreadsheetname,Spreadsheetname[Population]= "Local"), Spreadsheetname[GroupCount])
Return
(RN / GP)
 
Is this right or is there a better way that will work?
6 REPLIES 6
MikeyD
Frequent Visitor

Already posted above

like this ? 

 

lbendlin_0-1663186955086.png

 

MikeyD
Frequent Visitor

Basically i'm trying to use a group count (thousands of lines) / Metric met for this particular vaccine to get an overall percentage of those that have and haven't met the metric.

There are 24 other vaccines inside vaccination name that need to be filtered out.

InterventionNameServiceGroupCountVaccinatedNotVaccinatedVaccinationUnknownMetricMetric Not Met
TyphoidRAF110001
TyphoidRN330012
TyphoidRN330012
TyphoidRN220011
TyphoidRN110001
TyphoidRN110010
TyphoidRN440004
TyphoidRN220002
TyphoidRN110010
TyphoidRN110010
TyphoidRN110010
TyphoidRAF110001
TyphoidRAF110001
TyphoidRAF110001
TyphoidRN110001
TyphoidRAF110001
TyphoidRAF220002
TyphoidRAF110001
TyphoidRN220002
TyphoidRN220002
TyphoidRN110001
TyphoidRAF440013
TyphoidRAF110001
TyphoidRN110001
TyphoidRN110001
TyphoidRAF110001
TyphoidRAF110001
TyphoidRAF110001

what would be the expected outcome?

A percentage based only those RN who have and Haven't met the Metric including the Unknowns

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. I can only help you with meaningful sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive. Screenshots of your source data are not useful.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

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!

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.