The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am currently trying to segment soe product sales in to groups. Let me explain..
I have a table of products with a MIN price and a MAX price and a dax formular calculating the pricedifference in % MAX/(MAX-MIN). Also an additional table called PriceClasses with the columns ClassName, MIN, MAX.
PriceClasses
Name | MIN | MAX |
<10% | 0 | 0,1 |
10-20% | 0,1 | 0,2 |
In a line chart I want to show e.g. the amount of products that belong to each group by day. basically on the 16th of august there were 50 Products between 10-20% and 10 products below 10 % and so on
The dax formular I have looks like this:
can somebody help out on this?
@dats
Can you provide a full data in a pbix, including both sample tables and the relationship. And if you put the 16 Aug on the x axis, the visual will only show values on a same vertical line. So I am not sure how is your expected visual looks like.
Paul Zheng _ Community Support Team
Does somebody have an idea on this? 🙂
@dats , I think it should be like
Calculate([Price difference %],FILTER(RankingDimension, [Price difference %]> PriceClasses[Min] && [Price difference %]<= PriceClasses[Max]))
I think I cannot access and utilize the MIN MAX columns of the Pricess classes through this ?