cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
vito123
Helper I
Helper I

Adding multiple filters for calculate table function

Hi Friends,

 

This is an extension of the problem here 

https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extension-of-a-previous-DAX-Query/m-...

 

I am trying to extract SRF's between 2 levels ' Maxheight' and 'MidBot'  both of which are stored in 'Bottom_Middle' ..

vito123_1-1693458329583.png

 

 

vito123_0-1693458312461.png

Now grabbing these 2 values I need to extract SRF's between these 2 levels from a different table 

 

Tower ID Mass height SRF
123Cell 26500.3
123Cell 25000.25
123Cell 24500.1
123Cell 22000.3
123Cell 2500.2
 
This is the code that I am using but infortuantely it is giving error message of limited memory and not working..
 
 

 

MID_Section_SRF_BYLEVEL = 
SELECTCOLUMNS(
	GENERATE(
		SELECTCOLUMNS(
			'Bottom_Middle',
			"Tower ID",Bottom_Middle[TowerModelId],
			"Midtop", Bottom_Middle[MIdtoplevel],
            "Midbot",Bottom_Middle[Bottom_Section_Height]
		),
		VAR MaxHeight = [Midtop]
        VAR Midbot=[Midbot]
		RETURN
			CALCULATETABLE(
				SELECTCOLUMNS(
					'TowerResultExtremeYielding',
					"height", TowerResultExtremeYielding[Level],
					"SRF", TowerResultExtremeYielding[Extreme_SRF],
                    "Loadcase", TowerResultExtremeYielding[LoadCase]
				),
				TowerResultExtremeYielding[Level] <= MaxHeight && TowerResultExtremeYielding[Level] >=Midbot
			)
	),
	"Tower ID", [Tower ID],
	"Height", [height],
	"SRF", [SRF],
    "Loadcase",[LoadCase]
)

 

Please help me out here with the filter conditions...

1 ACCEPTED SOLUTION

4 REPLIES 4
technolog
Super User
Super User

I hope this message finds you well. I've noticed that this solution remain unresolved. If any of you have managed to find a resolution to the issue, I kindly request that you share your solution for the benefit of the entire community. Alternatively, if you're still facing challenges, please do let us know as well.

Your insights and updates will greatly assist others who might be encountering the same challenge.

Sorry for the delay. My problem has been solved here below:

 

Solved: Re: Extraction of Values Between 2 levels - Multip... - Microsoft Fabric Community

lbendlin
Super User
Super User

Use DAX Studio to evaluate the query plan for your DAX.  Then refactor your query to reduce the number of iteration/cartesians.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors