Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Dimension =if(GetSelectedCount(Themes)>0,
if(match(Permalink,$(vCRP)) and not match(Themes,$(vCRT)),Themes),
if(match(Permalink,$(vCRP)) and not match(Themes,'$(vTh)'),Themes))
Solved! Go to Solution.
Hi @Anonymous ,
You can try formula like below:
result =
IF (
COUNTROWS ( VALUES ( 'Themes'[Theme] ) ) > 0,
IF (
CONTAINSSTRING ( "vCRP", MAX(Themes[Theme]) ) && NOT CONTAINSSTRING ( "vCRT", MAX(Themes[Theme])),
MAX(Themes[Theme]),
BLANK ()
),
IF (
CONTAINSSTRING ( "vCRP", MAX(Themes[Theme]) ) && NOT CONTAINSSTRING ( "vTh", MAX(Themes[Theme])),
MAX(Themes[Theme]),
BLANK ()
)
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You can try formula like below:
result =
IF (
COUNTROWS ( VALUES ( 'Themes'[Theme] ) ) > 0,
IF (
CONTAINSSTRING ( "vCRP", MAX(Themes[Theme]) ) && NOT CONTAINSSTRING ( "vCRT", MAX(Themes[Theme])),
MAX(Themes[Theme]),
BLANK ()
),
IF (
CONTAINSSTRING ( "vCRP", MAX(Themes[Theme]) ) && NOT CONTAINSSTRING ( "vTh", MAX(Themes[Theme])),
MAX(Themes[Theme]),
BLANK ()
)
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous,
Can you try this:
MEASURE =
VAR __vCRP = "" //I don't know how this variable is populated in QlikSense
VAR __vCRT = "" //Same as above
VAR __vTH = "" //Same as above
VAR __Permalink = "" //Same as above
RETURN
IF (
HASONEVALUE ( Themes ),
IF (
OR (
AND (
CONTAINSSTRING ( __Permalink, __vCRP ),
NOT ( CONTAINSSTRING ( __Permalink, vCRT ) )
),
AND (
CONTAINSSTRING ( __Permalink, __vCRP ),
NOT ( CONTAINSSTRING ( __Permalink, vTH ) )
)
),
SELECTEDVALUE ( Themes ),
BLANK ()
),
BLANK ()
)
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 |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 23 | |
| 14 | |
| 10 | |
| 6 | |
| 5 |