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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Amitkr174
Helper III
Helper III

DAX Help to Restrict Filtering Column in a table

Hi,

 

I need a help on DAX, I want to filter the 'Net Available Hours' only based on the 'Resource Region' filter. The 'Billable hours' should not get filtered out. It should remain 112,462 only. Screenshot is below:-

image.PNG

12 REPLIES 12
camargos88
Community Champion
Community Champion

Hi @Amitkr174 ,

 

I believe you need a disconected table for it:

 

Create a new table using the region values: Region = VALUES('Table'[REGION])

 

Do not relate it with any table and use it as slicer.

 

Create your measures:

_1 =
VAR _region = VALUES(Region[REGION])
RETURN CALCULATE(SUM('Table'[VALUE 1]); 'Table'[REGION] IN _region)
 
_2 = CALCULATE(SUM('Table'[VALUE 2]))
 
Check this file: Download PBIX 
 

If you consider it as a solution, please mark as a solution and kudos.

Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Thanks @camargos88  for your reply!

Issue is that I using direct query here and I don't have rights to modify a table.

 

Is there any other way via which this can be resolved? 

@Amitkr174 ,

 

You don't need to change your source, just remove the relationship in Power BI.

If you want, you can duplicate the region values as table and use this example.

 

Did I answer your question? Mark my post as a solution!
Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



@camargos88  - Data is flowing from SSAS cube into Power bi and we cannot modify the structure of the ERD. Below is the screenshot of the different objects in the cube:-

 

Capture.PNG

@Amitkr174 ,

 

Can't you try creating another query import just this region table to your model ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



No we don't have that option.

 

We have the option to use only DAX.

@Amitkr174 ,

 

I hope you have a separated table for region...try this one:

 

_1 = CALCULATE(SUM('Table'[VALUE 1]); CROSSFILTER('Table (2)'[REGION]; 'Table'[REGION]; None))
 
Ricardo


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Greg_Deckler
Community Champion
Community Champion

So, you need to use ALLEXCEPT in that case. Something along the lines of:

 

CALCULATE(SUM([Billable Hours]),ALLEXCEPT('Table'[Resource Region]))



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi - This is not working.

 

Image1.PNG

 

 

Anonymous
Not applicable

Replacre it with the exact daxReplacre it with the exact dax

Hi Amit,

It will work if you calculate the measure in the MEASURE 3 itself ,It will not work if you call it from earlier created DAX Measure.

 

 

Hi Vikram,

 

This is not working. Please see the screenshot.

Capture.PNG

Anonymous
Not applicable

Hi Amit,

 

Don't use flying measures.

 

Use like below example:

 

MeasureName= CALCULATE(SUM(BILLING HOURS),ALLEXCEPT(Utilization,Utilization[Resource Practice]))

 

 

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.