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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Zaky
Helper IV
Helper IV

Need Help with a Measure Formula

Hi All,

Wondering if someone would able to help me with formula to count/filter based on ‘AUPEC definition’  column as per data table below.

So it will become:

Physically on-site = 4

Require engineer to travel = 4

 

Thanks.

 

REGIONAreaMain SiteAUPEC DefinitionPhysical or Travel
EAST COASTKTKTINSTEPphysically on-site
EAST COASTKTKTINSTEPphysically on-site
EAST COASTKTKTKLCCUHphysically on-site
EAST COASTPakaKIPC KIPCphysically on-site
EAST COASTPakaKIPC KIPCphysically on-site
EAST COASTPakaKIPC KIPCphysically on-site
EAST COASTPakaKIPC KIPCphysically on-site
EAST COASTPakaKIPC KIPCphysically on-site
EAST COASTPakaKIPC KIPCphysically on-site
EAST COASTPakaKIPC KIPCphysically on-site
EAST COASTPakaKIPC PCLDPEphysically on-site
EAST COASTPakaKIPC PCLDPEphysically on-site
EAST COASTPakaKIPC PCLDPEphysically on-site
WEST COASTSabahKimanisKimanisrequire engineer to travel
WEST COASTSabahKimanisKimanisrequire engineer to travel
WEST COASTSabahKimanisKimanisrequire engineer to travel
WEST COASTSabahKimanisKimanisrequire engineer to travel
CENTRALKuala LumpurEtiqaEtiqarequire engineer to travel
CENTRALKuala LumpurEtiqaEtiqarequire engineer to travel
CENTRALKuala LumpurEtiqaEtiqarequire engineer to travel
CENTRALKuala LumpurEtiqaEtiqarequire engineer to travel
CENTRALKuala LumpurEtiqaEtiqarequire engineer to travel
CENTRALKuala LumpurBinjaiBinjairequire engineer to travel
CENTRALKuala LumpurIntermarkIntermarkrequire engineer to travel
CENTRALKuala LumpurIntermarkIntermarkrequire engineer to travel
CENTRALKuala LumpurIntermarkIntermarkrequire engineer to travel
CENTRALKuala LumpurIntermarkIntermarkrequire engineer to travel
CENTRALKuala LumpurIntermarkIntermarkrequire engineer to travel
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Zaky ,

MEASURE1 = DISTINCTCOUNT( 'Table'[AUPEC Definition] )

 

Capture.JPG

Hope that helps.
Cheers,
Rob

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
Anonymous
Not applicable

Hi @Zaky ,

MEASURE1 = DISTINCTCOUNT( 'Table'[AUPEC Definition] )

 

Capture.JPG

Hope that helps.
Cheers,
Rob

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

Hi @Anonymous ,

 

Thanks for your help. The formula working well. Since I wanted it to be seen in KPI visual, i just modify a bit the measure as follow based on "Physical  or  Travel" field column.

 

#OFF Measure =
CALCULATE(DISTINCTCOUNT('ICT Key Statistics July 2019'[AUPEC Definition]), 'ICT Key Statistics July 2019'[Physical or Travel] IN { "offshore"})
 
Apart of that, is there any chance to make the "(Blank)" series to be default as "0"?
 
capture1.JPG
Anonymous
Not applicable

Hi @Zaky ,

 

Sorry for late reply, please try:

 

#OFF Measure =
IFERROR(
CALCULATE(DISTINCTCOUNT('ICT Key Statistics July 2019'[AUPEC Definition]), 'ICT Key Statistics July 2019'[Physical or Travel] IN { "offshore"})  
, 0 )

Cheers,
Rob

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.