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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
nicolast29
Helper V
Helper V

calculate filter with variable and special char

Hi, i have to filter accounting accounts for my calculation 

 

W102 =CALCULATE ([solde],FILTER ('GL Normé',
'GL Normé'[CompteNum]>= 707####0
&& 'GL Normé'[CompteNum] <= 707####0
))*-1

Here the # means all numbers between 0 and 9

 

I try that but i want something more smooth, for my next case more complex

W102 =
CALCULATE (
[solde],
FILTER (
'GL Normé',
VALUE(LEFT('GL Normé'[CompteNum],3))= 707
&& value(RIGHT('GL Normé'[CompteNum],1)) <> 0
)
)*-1

 

Thanks nicolas

 

 

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

HI, @nicolast29 ;

Is your problem solved? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @nicolast29 ;

You could try it.

W102 =
CALCULATE (
[solde],
FILTER (
'GL Normé',
LEFT('GL Normé'[CompteNum],3)= '707'
&& RIGHT('GL Normé'[CompteNum],1) <> '0'
)
)*-1
 

I'm not sure what you're looking for, but it would be nice if you could give an example and output what you want to see


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.