This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
I have a very large CSV data set with length, width, and height, columns, I am trying to filter out the data that will only fit between my criteria below. I want to narrow my master list down to the only item that will fit in the below sizes. It should also be noted that length width and height are just users entered, so they could interrupt what they think is length width and height, so the flexibility of having it look at those 3 column column to make sure they fit.
Any help would be greatly appreciated
Solved! Go to Solution.
@Anonymous - I fixed the duplicates issue I believe and corrected a syntax error. PBIX is attached for reference, Table 16 (below sig)
Column =
VAR __Table = { [Length], [Width], [Height] }
VAR __Length = MAXX(__Table,[Value])
VAR __Height = MINX(__Table,[Value])
VAR __Width = SWITCH(TRUE(),
COUNTROWS(FILTER(__Table,[Value] = __Length))>1,__Length,
COUNTROWS(FILTER(__Table,[Value] = __Height))>1,__Height,
MAXX(FILTER(__Table,[Value] <> __Length && [Value] <> __Height),[Value])
)
RETURN
SWITCH(TRUE(),
__Length <= 8.26 && __Height <= .4 && __Width <= 7.87,"Small",
__Length <= 21 && __Height <= 11.4 && __Width <= 13.4,"Large",
"Does not fit"
)
@Anonymous - Maybe something like:
Column =
VAR __Table = { [Length], [Width], [Height] }
VAR __Length = MAXX(__Table,[Value])
VAR __Height = MINX(__Table,[Value])
VAR __Width = MAXX(FILTER(__Table,[Value] <> __Length && [Value] <> __Height),[Value])
SWITCH(TRUE(),
__Length <= 8.26 && __Height <= .4 && __Width <= 7.87,"Small",
__Length <= 21 && __Height <= 11.4 && __Width <= 13.4,"Large",
"Does not fit"
)
There's a problem to be solved for duplicate values.
My table column are labeled UOM_LENGHT, UOM_Height, and UOM_WIDTH, do I just swap that out in our text below for all the places it shows?
@Anonymous - I fixed the duplicates issue I believe and corrected a syntax error. PBIX is attached for reference, Table 16 (below sig)
Column =
VAR __Table = { [Length], [Width], [Height] }
VAR __Length = MAXX(__Table,[Value])
VAR __Height = MINX(__Table,[Value])
VAR __Width = SWITCH(TRUE(),
COUNTROWS(FILTER(__Table,[Value] = __Length))>1,__Length,
COUNTROWS(FILTER(__Table,[Value] = __Height))>1,__Height,
MAXX(FILTER(__Table,[Value] <> __Length && [Value] <> __Height),[Value])
)
RETURN
SWITCH(TRUE(),
__Length <= 8.26 && __Height <= .4 && __Width <= 7.87,"Small",
__Length <= 21 && __Height <= 11.4 && __Width <= 13.4,"Large",
"Does not fit"
)
@Anonymous - Yes, just the first line is where you would swap out [Length], [Height] and [Width].
I get errors when I use this:
@Anonymous - Yes, because I had a syntax error, try this:
Column =
VAR __Table = { [UOM_Length], [UOM_Width], [UOM_Height] }
VAR __Length = MAXX(__Table,[Value])
VAR __Height = MINX(__Table,[Value])
VAR __Width = SWITCH(TRUE(),
COUNTROWS(FILTER(__Table,[Value] = __Length))>1,__Length,
COUNTROWS(FILTER(__Table,[Value] = __Height))>1,__Height,
MAXX(FILTER(__Table,[Value] <> __Length && [Value] <> __Height),[Value])
)
RETURN
SWITCH(TRUE(),
__Length <= 8.26 && __Height <= .4 && __Width <= 7.87,"Small",
__Length <= 21 && __Height <= 11.4 && __Width <= 13.4,"Large",
"Does not fit"
)
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 21 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 56 | |
| 55 | |
| 43 | |
| 26 | |
| 24 |