Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hello !
I would like to have a rank column in my table. I know that I have to use rankx but here is the difficult point : I have created a relation between 2 sources based on the sku, and now I would like to rank but in my table I have dimensions coming from my source 1 and my source 2.
Here is a visual example :
So in my source 1 I have for example the field : sku, gender, color and sales
In the source 2 I have : sku and type
I have created a relation between the two tables based on the sku key.
An important point : I have contextual filters so the rank measure should change each time the filter value change.
How would you do that ?
Thanks guy !
Solved! Go to Solution.
@Anonymous , sorry , it should be Type
rankx(summarize(allselected(source1), sources2[SKU], source1[gender],source1[color], source1[Type]) , [sales],,desc, dense)
Thank you for your suggestion. I was running into a similar issue and this measure worked perfectly
Hello @amitchandak, thanks for the anwser 🙂
But Source 1 and source 2 are two different sources so I don't understand how this part : source1[source2]
could work. Source 2 is not a column of the source 1.
@Anonymous , sorry , it should be Type
rankx(summarize(allselected(source1), sources2[SKU], source1[gender],source1[color], source1[Type]) , [sales],,desc, dense)
@Anonymous , You have to create a measure rank
rankx(summarize(allselected(source1), sources2[SKU], source1[gender],source1[color], source1[source2]) , [sales],,desc, dense)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 21 | |
| 14 | |
| 11 | |
| 6 | |
| 5 |