cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Fcoatis Member
Member

Dynamic RankX

Can you help me with the Mesures .T1 and .T2 in the following example?

 

https://drive.google.com/open?id=1QpXYl5U9-2K_5Ex5eSyPLkhnjCF6S5Vb

 

The goal is to Rank the both visuals in page 2

 

Thanks

6 REPLIES 6
Super User
Super User

Re: Dynamic RankX

Hi @Fcoatis

I think that, on top of the file, an explanation here on what you are trying to achieve would increase the likelihood of getting your question answered.

Super User
Super User

Re: Dynamic RankX

agree with @AlB with that being said, see if this link helps out

 

https://community.powerbi.com/t5/Desktop/Ranking-Cumulative-Total/m-p/561977#M265148

Fcoatis Member
Member

Re: Dynamic RankX

Thank you @AlB,

 

The explanation is below the link. I would like to use RankX in both visuals of page 2. 

Community Support Team
Community Support Team

Re: Dynamic RankX

Hi @Fcoatis,

 

I'm a little confused about your scenario. Please describe your requirement in more details.


 The explanation is below the link. I would like to use RankX in both visuals of page 2. 



You have three visuals in Page 2. If I understand your scenario correctly that you want to use T2 measure in table visual in Page 2 and rank the measure [.Max Last n Days] dynamically based on the slicer?

 

If it is convenient, please share your desire output so that we could help furher on it.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Fcoatis Member
Member

Re: Dynamic RankX

Hi Cherry,

 

The scenario is: Given an interval of dates I can choose a period of days to show the best and worst periods of sales. This is achieved in page 1. I´m trying to use Rankx in both tables of page 2 to show this results:

 

Fig1.PNGFig2.PNG

 

Obviously, it must be dynamic, once the tables increase depending on the date interval and period selected.Let me know if you need further details.

 

Thanks

 

 

Community Support Team
Community Support Team

Re: Dynamic RankX

Hi @Fcoatis,

 

Sorry for the delay.

 

By my research of your pbix, I have a little confused about your scenario.

 

max date.PNG

 

Based on the image above, I have confused about your measure .Max Last n Days.

 

From my understand, the measure should return the last n days based on the max date from your date slicer? 

 

You could see that max date in the date slicer is 2015/5/11 and the sales table has the sales value on 2015/5/11, but your measure return the max date is 2015/4/20.

 

Could you please check if your measure .Max Last n Days is correct. 

 

If I misunderstood something, please describe your logic in more details.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 48 members 1,218 guests
Please welcome our newest community members: