Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
90 | |
87 | |
84 | |
66 | |
49 |
User | Count |
---|---|
131 | |
110 | |
96 | |
70 | |
67 |