Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
HELP! I've taken a new position that utilizes Power Bi heavily and I'm trying to run a new column (A that takes my 'Accessorials' column and references two other tables in order to populate all possible results. This is coming from a SQL Stored Procedure, which when ran manually, referenced an XML hierarchy file.
Accesorial.Text = LOOKUPVALUE(AccessorialModeLTL[Attribute.Text], AccessorialModeLTL[Attribute.Value], '4-1 StoredProcedure Query'[Accessorials])
When I run this basic lookup formula, I only get accessorials if they only had one listed attribute (many rows have this field null as they have no accessorials)-- Any row that has more than one accessorial doesn't return anything. I need a list of all accesorials delimited by commas, so that we can evaluate the prices based on which "add-ons" were included in this price
Lookup Table (heiarchy) #1:
Lookup Table (heiarchy) #2:
I have attached both of the lookup tables in .xlsx format for a more detailed scope of the data and lookup options. So, I kind of have two questions:
1) What formula can I use so that all lookup values from my two tables are included in the output column?-- Keep in mind I have two lookups (the first lookup gives a 1 for true and 0 for false, the second lookup actually references varchar lookup values)
2) Is there a better (beginner) way to model & reference this hierarchy so that the end user can only see the ouputted accesorials instead of the [pu_lifgate:1], [trailerfeet:9], [trailerfeet:11], etc. format?
Flattened Accessorial Table #1 (True/False)
Flattened Accessorial Table #2 (Varchar)
Any help is greatly appreciated, as I may be in a bit out of my league here.
Hi, @Anonymous
Could you please tell me whether your problem has been solved?
If yes, you could accept the helpful answer as solution.
If you still need help, please share more details for further research.
Best Regards,
Community Support Team _ Eason
@Anonymous , I only got the part of more than one condition, so option is you can add more than one condition
Accesorial.Text = LOOKUPVALUE(AccessorialModeLTL[Attribute.Text], AccessorialModeLTL[Attribute.Value], '4-1 StoredProcedure Query'[Accessorials], <> , <> )
or you can try like
Accesorial.Text = maxx(filter( AccessorialModeLTL, AccessorialModeLTL[Attribute.Value], '4-1 StoredProcedure Query'[Accessorials]
&& AccessorialModeLTL[Col2 ], '4-1 StoredProcedure Query'[Col2]) ,AccessorialModeLTL[Attribute.Text])
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 25 |