Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
I am stuck on how to solve this. Basically I have a dimensions table where I have a code and the description:
On my fact table I have the records that can contain several codes from my dimensions table:
How can I combine them or how can I use the Handling Code to slice the data in the fact table?
Hope I made my=self clear enough. Thanks for your help!
Solved! Go to Solution.
Hi @andicornejo12 ,
Here are the steps you can follow:
1. Create measure.
Flag =
var _select=SELECTEDVALUE('Table'[Hide Code])
return
IF(
CONTAINSSTRING(
MAX('dimensions table'[Handling Code List]),_select)=TRUE(),1,0)
2. Place [Flag]in Filters, set is=1, apply filter.
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @andicornejo12 ,
Here are the steps you can follow:
1. Create measure.
Flag =
var _select=SELECTEDVALUE('Table'[Hide Code])
return
IF(
CONTAINSSTRING(
MAX('dimensions table'[Handling Code List]),_select)=TRUE(),1,0)
2. Place [Flag]in Filters, set is=1, apply filter.
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @v-yangliu-msft It doesnt work though if I pick more than one value in the slicer. Is it because of the format? would having spaces help? Thanks so much!!
Thanks a lot! works perfect 🙂
You don't need to concatenate those values into a fact table. Just use the code column in a slicer visual, making sure there is a relationship between the dimension and fact table. That slicer visual would have the list of values you can slice and dice
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
105 | |
99 | |
39 | |
30 |