Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a need to identify products (and counts for % of total) based on the following scenerios. The locations are a slicer filter applicable to all.
1. If the product exists in one location, flag it as SingleLoc
2. If the product exists in all the selected locations (count (locations_dim.Loc)), flag it as Shared
3. If the product exists in at least 2 of the selected locations, flag it as Common
I have some of this working, but it seems really complex. I am still working on the SingleLoc, but am thinking there has to be an easier way to do this. I am thinking I should be able to have flags on the product dimension, and set them dynamically based on facts grouping the count of products based on filters.
Anyway, appreciate any help.
Solved! Go to Solution.
Hi @kozmar,
I am thinking I should be able to have flags on the product dimension, and set them dynamically based on facts grouping the count of products based on filters.
According to your description, are you trying to add dynamic column calculation based on Slicer Selection in your product dimension table?
If that is the case, it is not possible to do it because calculated columns are initialized regardless of Slicers. However, you can create a measure to show the flag with the Products in the report. Here is a similar thread for your reference.
Regards
We are good, the filter group by combination gives the needed results. Works great. thanks. I probably didn't describe the problem correctly.
Hi @kozmar,
I am thinking I should be able to have flags on the product dimension, and set them dynamically based on facts grouping the count of products based on filters.
According to your description, are you trying to add dynamic column calculation based on Slicer Selection in your product dimension table?
If that is the case, it is not possible to do it because calculated columns are initialized regardless of Slicers. However, you can create a measure to show the flag with the Products in the report. Here is a similar thread for your reference.
Regards
Yes, that works. thanks!
Hi @kozmar,
Great to hear the problem got resolved. Could you accept the corresponding reply as solution to close this thread?
Regards
Yes!! reply accepted as solution. thanks.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |