Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi there, I have this data here
Location Type
ABB008 STS
ABB008 DOI
ABB009 FI
ABB025 FI
ABB035 DOI
ABB135 FI
ABB270 RED
ABB270 STS
I need to come up with a way to show the locations that have STS and at least another type associated. Like ABB270 has STS and RED.
thank you so much!!
Solved! Go to Solution.
You can write a measure like this:
Filter =
VAR _sts = CALCULATETABLE ( VALUES ( YourTable[Location] ), YourTable[Type] = "STS" )
VAR _other = CALCULATETABLE ( VALUES ( YourTable[Location] ), YourTable[Type] <> "STS" )
VAR _list = INTERSECT ( _sts, _other )
RETURN
CALCULATE ( COUNTROWS ( YourTable ), _list )
Then use that as a filter on the visual to return only the Location that have STS + other.
plse try this corrected code
You can write a measure like this:
Filter =
VAR _sts = CALCULATETABLE ( VALUES ( YourTable[Location] ), YourTable[Type] = "STS" )
VAR _other = CALCULATETABLE ( VALUES ( YourTable[Location] ), YourTable[Type] <> "STS" )
VAR _list = INTERSECT ( _sts, _other )
RETURN
CALCULATE ( COUNTROWS ( YourTable ), _list )
Then use that as a filter on the visual to return only the Location that have STS + other.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
105 | |
68 | |
47 | |
42 | |
39 |