Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all,
Thank you in advance.
Tablename - MyStoreItemMaster
Tablename – MyStoreItemInventory
Relationship
I need to flag each ItemNo at the MyStoreItemMaster based on the pcs-XX columns, considering the Region Slicer User Selection, and irrespective of whether Inventory data exists for the ItemNo.
Note - MyStoreItemMaster does not have Region column.
User select - US
MyStoreItemMaster with new calculated column HasForecastUnits
User select - RG-CA
User select - RG-EU
User select - RG-UK
Could you please provide guidance on how to accomplish this?
Try creating a conditional measure that will flag your items like so:
add variable that will change dynamically the pcs column depending on your selection using SWITCH then use the measure
HasForecastUnits = if ( isblank(variable), "N" , "Y")
let me know if this worked or if you need help writing the switch variable.
Thank you for your response, I tried this, but it didn't work. Please let me know if I'm overlooking something.
There was also the part where you use the variable in a IF confition, replace "return dPcsXX" with:
return
if ( isblank(dPcsXX), "N" , "Y")
959473AA should be "N" since the pcs-US value is 0 but it is "Y"
Replace it with this:
if ( or(isblank(dPcsXX),dPcsXX=0), "N" , "Y")
Now 39993BB should be "Y" since the pcs-US value is 3
Okay, question, the items under the RG-US region don't necessarily have values in the pcs-US column only ( item master table ), is it a typo or that's the normal behavior of the data?
Hi @JohnnySaade
I applied the same logic, but instead of SelectedValue, I replaced it with Filters, and it's now working. Thank you for your help and quick responses. I appreciate it.
Glad I was able to help!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
61 | |
61 | |
55 | |
38 | |
27 |
User | Count |
---|---|
82 | |
61 | |
45 | |
41 | |
39 |