Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi Team.
I was wondering if you can help me with this issue. I have a table with car sellers.
CAR Sell by
MAzda Juan
Ford Juan
Mazda2 Jhon
Therefore i create a table visualizations that show the top 5 sellers, its just a visual and i count the column "SellBy"
But i want to add a new Column, with the order (Color Red), do you know how can i create this new column to show in the report.
Thanks
Solved! Go to Solution.
Hi @Noredlac86 ,
I created some data:
Here are the steps you can follow:
1. Modeling – New parameter -- Fields.
2. Create measure.
Count_Car =
COUNTX(
FILTER(ALL('Table'),'Table'[Car]=MAX('Table'[Car])),[Sellby])
Count_Sellby =
COUNTX(
FILTER(ALL('Table'),'Table'[Sellby]=MAX('Table'[Sellby])),[Sellby])
rank_car =
RANKX(
ALLSELECTED('Table'),[Count_Car],,ASC,Dense)
rank_sellby =
RANKX(
ALLSELECTED('Table'),[Count_Sellby],,ASC,Dense)
Top =
SWITCH(
TRUE(),
MAX('Parameter'[Parameter])="Car",[rank_car],
MAX('Parameter'[Parameter])="Sellby",[rank_sellby])
3. Result:
When selecting Car, sort by car
When choosing Sellby, sort by Sellby
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Noredlac86 ,
I created some data:
Here are the steps you can follow:
1. Modeling – New parameter -- Fields.
2. Create measure.
Count_Car =
COUNTX(
FILTER(ALL('Table'),'Table'[Car]=MAX('Table'[Car])),[Sellby])
Count_Sellby =
COUNTX(
FILTER(ALL('Table'),'Table'[Sellby]=MAX('Table'[Sellby])),[Sellby])
rank_car =
RANKX(
ALLSELECTED('Table'),[Count_Car],,ASC,Dense)
rank_sellby =
RANKX(
ALLSELECTED('Table'),[Count_Sellby],,ASC,Dense)
Top =
SWITCH(
TRUE(),
MAX('Parameter'[Parameter])="Car",[rank_car],
MAX('Parameter'[Parameter])="Sellby",[rank_sellby])
3. Result:
When selecting Car, sort by car
When choosing Sellby, sort by Sellby
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @v-yangliu-msft
Thanks for your time to read my message and reply. The only problem that i have, is that i have the original tablein that way:
I just have this, so if i want to know the top 5 sellers, i just add a visual table and i make a count for the column "Sellby" if i want to know the top 5 cars more sells, i make the same, new visual table and count for the car column.
I have tried using this formula, but its not working, cause in the original table i dont have another coumn, and i cant add more columns
Hi @Noredlac86 ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Sell_measure =
SUMX(
FILTER(ALL('Table'),'Table'[Sell by]=MAX('Table'[Sell by])),[Sell])
TOP =
RANKX(
ALLSELECTED('Table'),[Sell_measure],,DESC,Dense)
Flag =
IF(
[TOP]<=5,1,0)
3. Place [Flag]in Filters, set is=1, apply filter.
4. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
87 | |
80 | |
69 | |
69 |
User | Count |
---|---|
226 | |
129 | |
119 | |
83 | |
77 |