Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi All,
Could anyone help on this error. My RankX function is not working as expected. I need to select the top4 of the last 7th and 6th day data. These are the steps that I have done.
A measure was created to select all the data of the last 6th and 7th day. After that the rank measure was created and filtered the rank <=4. But some where it is going wrong ,because all the rank seems to be 1. how should I modify it. Could help?
Solved! Go to Solution.
@Learner_SG , In Rankx you should columns, that will be present in visual or you should use table having both
Rankx( All(Table[Time], Table[WeekDay]), [Measure],,desc,dense)
Measure should have calculation and filter
measure = calculate(sum(Table[Value]), filter(Table, Table[Date]>= Today() -6 && Table[Date]<=Today() ) )
@Learner_SG , In Rankx you should columns, that will be present in visual or you should use table having both
Rankx( All(Table[Time], Table[WeekDay]), [Measure],,desc,dense)
Measure should have calculation and filter
measure = calculate(sum(Table[Value]), filter(Table, Table[Date]>= Today() -6 && Table[Date]<=Today() ) )
@amitchandak I have another issue which I face now. As I had mentioned earlier , I need to get the 4 higest of the 7th and 6th day which I am able to get. But the 6th day data displayed today and tmw(tmw -then it becomes the 7th day) the time changes because the 4 highest data collected changes. How can I make it the same ? Pls ref to the below pictures.
If you see the wednesday data , it is different in the two tables. So how do I select individually for each day and combine so that It does not change?
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.
| User | Count |
|---|---|
| 45 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 67 | |
| 66 | |
| 31 | |
| 28 | |
| 24 |