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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Exclude customer from total billing

Good

Could two customers somehow be excluded from total billing?

My dax measure for calculating total billing is: https://gyazo.com/170750e5e8236d14d59d95b4108b1c82

Both clients have their key, which are: 1 and 3 respectively: https://gyazo.com/60cdcb7aa45052a1e55a199b665618be

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hello @Alejandro-Glez ,

Try to create another measure based on your"Total Billing" measurelike this:

Measure =
CALCULATE (
    [Total Facturacion],
    FILTER ( FactVentas, NOT ( FactVentas[ClientKey] IN { 1, 3 } ) )
)

Best regards

Icey

If this post helps, then consider Accepting it as the solution to help other members find it faster.

View solution in original post

4 REPLIES 4
vanessafvg
Super User
Super User

you could do 

measure =
VAR measure = measure1 + measure2
RETURN
    CALCULATE ( measure, FILTER ( table, NOT ( customerkey IN { "one""two" } ) ) )





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , You can have measure like

example

filter meausre = calculate([Total Facturation], filter(Table, not(Table[customer] in {"Customer1","Customer2"})))

 

OR only remove in grand total


if(isfiltered(Table[customer]) ,[Total Facturation],[filter meausre])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I didn't quite understand your answer.

I'll let you capture the clients and the tables. The goal is that customers with Key "1" and "3" are not counted for full billing.

https://gyazo.com/79c43b8933cf769cfeb8e2aef8ed228f

https://gyazo.com/4fec3053e532392f5b84763a68ee9121

https://gyazo.com/892de8128d60ef2a64474743d0141234

Icey
Community Support
Community Support

Hello @Alejandro-Glez ,

Try to create another measure based on your"Total Billing" measurelike this:

Measure =
CALCULATE (
    [Total Facturacion],
    FILTER ( FactVentas, NOT ( FactVentas[ClientKey] IN { 1, 3 } ) )
)

Best regards

Icey

If this post helps, then consider Accepting it as the solution to help other members find it faster.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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
Top Kudoed Authors