The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi guys.
I'm new to PBI and I'm trying to figure out something.
I need to get a unique value from a table, based on the filtered selection of another related table (slicer).
Table with street lenght:
STREET | DISTRICT | LENGHT |
street1 | A | 1 |
street1 | B | 2 |
I need to get the lenght of street name, IF the district matches the district applied on this slicer selection below.
Let's assume the slicer selection is from district "B".
Right now, the final table is showing multiple lenght occurrences (different values of lenght), as much times as the street name repeats itself. I just need to show the value "2" from this example.
Thanks for the reply Allan
Below is the the current relationship.
Each county (concelho) can have multiple ocorrencies of street name (Rua), but each parish (freguesia) only has one street name.
I created an in between column to avoid many to many relationships.
I need to get specific info from the table COMP_RUA, which is it's lenght.
If I insert this in a visual and filter by min value it gives me the correct street lenght but this somehow doesn't seem okay. I also tried LOOKUPVALUE but gave me an error. For example, in Excel I could use VLOOKUP to search for that specific value.
COMPRIMENTO =
CALCULATE (
FIRSTNONBLANK ( COMP_RUA[COMPRIMENTO], 1 ),
FILTER (
COMP_RUA,
OTs[RUA] = COMP_RUA[ENDERECO]
)
)
Is there a way to get the specific value and stick it in a card without any problems? 🙂
Hi, @some1else
Could you please show us some sample data and expected result with OneDrive for business? Do mask sensitive data before uploading. Thanks.
Best Regards
Allan
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
79 | |
71 | |
48 | |
41 |
User | Count |
---|---|
136 | |
108 | |
71 | |
64 | |
58 |