Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello, i am trying to create a one page report that users can print without the need for scrolling.
The table i have is too long to show all the values and so i want to create a number of tables spread out across the report page.
I have a dataset that has scores per individual per day. I am looking to summarising them into a weekly score and then rank them top to bottom and show them in the tables spread left to right?
I have worked all day trying to figure this out, any suggestions what can be done?
Solved! Go to Solution.
Hi @ola7mat,
I think in your second table, that is a measure in the visual. So we can use RANKX function to work around. Here I made one sample for your reference.
Firstly, create a calculated table based on the fact table. And create relationship between the two ones.
Table = DISTINCT(Table1[ID])
Create the measures as below.
sum = CALCULATE(SUM(Table1[sale]))
ranks = RANKX(ALL('Table'),[sum],,DESC,Dense)
Then we can filter the table by the measure ranks.
For more details, please check the pbix as attached. If it doesn't meet your requirement, kindly share your sample data or pbix to me.
Regards,
Frank
Hi @ola7mat,
You can use the Top N function to filter the visual to meet your requirement.
Regards,
Frank
thanks, this works for the first table where i can select the fixed number of rows to be shown, but with this approach the second table wouldn't allow me to say for example show me the top 20 but not the top 10 or show me the range of rows 10 -20?
Hi @ola7mat,
I think in your second table, that is a measure in the visual. So we can use RANKX function to work around. Here I made one sample for your reference.
Firstly, create a calculated table based on the fact table. And create relationship between the two ones.
Table = DISTINCT(Table1[ID])
Create the measures as below.
sum = CALCULATE(SUM(Table1[sale]))
ranks = RANKX(ALL('Table'),[sum],,DESC,Dense)
Then we can filter the table by the measure ranks.
For more details, please check the pbix as attached. If it doesn't meet your requirement, kindly share your sample data or pbix to me.
Regards,
Frank
Hi @ola7mat,
Does that make sense? If so, kindly mark my answer as a solution to close the case.
Regards,
Frank
thanks for this as this is a realy simple explanation that helps me immensily, and sorry for the slow reply as i missed your earlier response.
I have a question though based on your suggestion, and i think i know the answer, but do you know what the benefit to having these three steps
Table = DISTINCT(Table1[ID])
sum = CALCULATE(SUM(Table1[sale]))
ranks = RANKX(ALL('Table'),[sum],,DESC,Dense)
vs one with all of the steps, if that would even work at all?
ranks = RANKX(ALL(DISTINCT(Table1[ID])),CALCULATE(SUM(Table1[sale])),,DESC,Dense)
User | Count |
---|---|
125 | |
106 | |
99 | |
63 | |
62 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |