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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Flashed
Frequent Visitor

How to filter No Range

Hello Guys,

 

I'm trying to develop a report. I'am using a query from out Dynamics NAV. 

This gives me the follwing information:

 

GL Account No and Amount. I want to do the following. I want to the amount specified by a range of GL Accounts No.

 

I want to create a measure.

I've tried the following: 

 

Recurring Rev = 
Calculate(Sum(RecREV[Amount]);Filter(RecREV[GL AccountNo] >= "8000" .. "8089")

Or

Calculate(Sum(RecREV[Amount]);Filter(RecREV[GL AccountNo] >= "8000" & <= "8089")

 

Using multiple filters is way to much work if I want to make a very specified range.

 

I hope you guys can help me out!

 

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Flashed

 

Hi, GL AccountNo is a text field?

 

If is a number field you can try with:

 

M =
CALCULATE (
    SUM ( RecREV[Amount] );
    FILTER ( RecREV; RecREV[GL AccountNo] >= 8000 && RecREV[GL AccountNo] <= 8089 )
)

Regards

 

Victor

Lima - Peru




Lima - Peru

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

Try this

 

=CALCULATE(SUM(RecREV[Amount]);RecREV[GL AccountNo] >= 8000;RecREV[GL AccountNo] <= 8089)

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Vvelarde
Community Champion
Community Champion

@Flashed

 

Hi, GL AccountNo is a text field?

 

If is a number field you can try with:

 

M =
CALCULATE (
    SUM ( RecREV[Amount] );
    FILTER ( RecREV; RecREV[GL AccountNo] >= 8000 && RecREV[GL AccountNo] <= 8089 )
)

Regards

 

Victor

Lima - Peru




Lima - Peru

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.