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
Pandadev
Post Prodigy
Post Prodigy

Measure only works when I apply filter , is there a way to get it working not using slicer

Hi , I need to have a measure that groups the output  by region.

So I get the top rank list for each region , my measure is only working when I select a region from the slicer.

I would like it to work , without having to apply any slicer filters if possible

 

FTK Region Rank 2019 =
MINX (
FILTER (
SELECTCOLUMNS (
ALLEXCEPT( A_List ,A_List[region]),
"index", A_List[19 FTK World Rank],
"rank", RANKX ( ALLSELECTED ( A_List ), A_List[19 FTK],, DESC, DENSE )
),
[index] = MAX ( A_List[19 FTK World Rank] )
),
[rank]
)

 

Desired output would be

 

Code    Region    Rank     RPK

AA         EUR        1          5000

AB         EUR         2         3000

AC         EUR         3         1000

AD         MDE       1          4000

AE         MDE        2          2000

 

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @Pandadev ,

 

You can try formula like below:

RANK_ =
RANKX (
    FILTER ( ALL ( 'Table' ), 'Table'[Region] = EARLIER ( 'Table'[Region] ) ),
    [RPK],
    ,
    DESC
)

vhenrykmstf_1-1667382129289.png

 

 

If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


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

Thanks , yes that has fixed the ranking code , my last issue is trying to apply the same logic to my coverage code , is this also possible

Finance Region Coverage 2020 = SUM([20 Rev USD])/CALCULATE(SUM(A_List[20 Rev USD]),ALLEXCEPT( A_List ,A_List[region]))

Here is an example table

codeRegionValue
AAAMDE1000
BBBEUR900
CCCEUR800
DDDMDE700
EEEEUR600
FFFNOA500
GGGNOA400
HHHMDE300

 

I need a formula to create the world coverage and region coverage in same table visual so the results are like this 

codeRegionValueRegion CovWorld Cov
AAAMDE10000.50.192308
BBBEUR9000.3913040.173077
CCCEUR8000.3478260.153846
DDDMDE7000.350.134615
EEEEUR6000.260870.115385
FFFNOA5000.55560.096154
GGGNOA4000.44440.076923
HHHMDE3000.150.057692

So for the world coverage the total value is 5200 , I am dividing the value of the row by the total value of the row

For the regional coverage for MDE the total value is 2000 

AAAMDE1000
DDDMDE700
HHHMDE

300

 

I am dividing the value by 2000

 

For NOA it is 900

and EUR is 2300

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.