Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi All,
I require some help with detailed segmentation measures. I used the link below to help guide me, but my issue is a little more complex as my "segmentation rules" differ for each item number.
https://www.daxpatterns.com/dynamic-segmentation/
I have a "Segment Rules" table called 'Price List Updated'. It is linked to the Item_Master table on Item #. I also have a 'sales' table that calculates total revenue and ASP.
What I am looking to do is bucket each item's ASP into buckets, defined by the 'Price List Updated' table. I then want to be able to create different measures that sum total revenue, total quantity sold, or total count of items. Here is my DAX:
Any help would be very appreciated!
Solved! Go to Solution.
Got it! As normal, was overcomplicating the DAX needed. Here is the corrected code:
I have a .pbix file that replicates my issue, what is the best way to share it on this forum?
Hi,
Share some data and show the expected result.
Got it! As normal, was overcomplicating the DAX needed. Here is the corrected code:
Thanks, Ashish.
I will show a few images of example data to help out. First, here is the table that defines the Lowest and Highest Price for a Price Level. This is compared to the ASP of the Item Number. The intent would be for the overall ASP of the item to fit into one of these 10 levels. I have filtered to just one Item Number for simplicity.
Second, here is the table for the Item Master. I am only using this in my calculation to filter out any item that is blank, or not found in the first table.
Lastly, here is the sales table. As you can see, multiple sales rows for the item example. This is where spend@actual and ASP (calculated) are derived from.
The result I'm getting back should show me the total revenue based on where each Item Number fits within the Price Levels. It works when looking at the materials themselves, but the total for Price Level 1 does not add up to the sum of all of the Item Numbers (see below). Is this related to a specific filter I am identifying in my DAX? I have included my DAX below the image.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
142 | |
72 | |
62 | |
51 | |
48 |
User | Count |
---|---|
206 | |
90 | |
61 | |
59 | |
57 |