Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
phamtrinh96
Helper II
Helper II

[ Create Index Auto with Measure ]

Hi , I have a problem and I need from your help. 

I have 1 slicer select Brands. when I select one or many Barnd then slicer table will show many restaurant of Barnd. And I want to create Index for restaurant

ex , I select Brand " A " , It show 4 restaurant 

Index   Restaurant_Name         Amount

1             KFC                              10000

2             BBQ                             15000

3             Xuxu                            24000

4             McDobal                      9000

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@phamtrinh96 ,

 

You may create a measure using DAX like pattern below:

Index =
RANKX (
    ALLSELECTED ( Table[Brands] ),
    CALCULATE ( SUM ( Table[Amount] ) ),
    ,
    DESC,
    DENSE
)

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yuta-msft
Community Support
Community Support

@phamtrinh96 ,

 

You may create a measure using DAX like pattern below:

Index =
RANKX (
    ALLSELECTED ( Table[Brands] ),
    CALCULATE ( SUM ( Table[Amount] ) ),
    ,
    DESC,
    DENSE
)

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

phamtrinh96
Helper II
Helper II

With column " Amount " is created with Measure.

You can go to Query editor --> Add Column --> Add Index Column.

 

 

No , I want to create index auto with restaurants after I select brand. If Use Querry Editor , It show result failer

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.