Forum Discussion
top 5 VALUES by month
I cant get it to work
My relationships are defined as below
Items Table has a 1:M relationship with Usage Table. i.e. One ID from the Items table can have many items in the usage table.
The Usage Table has a 1:M relationship with the dates table. I.e.creation time on the usage table is a Many and it that has 1 relationship with the date table. i.e see below
I noticed in your formulae you are doing the sum of the data usage, I already have this value stored as a measure, so i am doing
Hi,
Thank you for your message.
Please check if Items table has other columns that influence the measure [TotalUsage] in the visualization.
Once the columns are identified, please write the measure something like below.
Top 5 item usage by month: =
CALCULATE (
[Usage measure:],
KEEPFILTERS (
TOPN ( 5,
ALL ( 'Item'[Item],'Item'[columnAinthevisualization],'Item'[columnBinthevisualization], and so forth ), [Usage measure:], DESC )
)
)
Or, if it is OK with you, please share your sample pbix file's link and then I can try to look into it.
Thanks.
- PPStar3 years ago
Helper V
i have a demo file. How do i attach it?
- Jihwan_Kim3 years ago
Super User
Hi,
Please share the link of the pbix file.
You can try to use onedrive, googledrive, or dropbox to share the link.
Thanks.
- PPStar3 years ago
Helper V
https://drive.google.com/file/d/1E1BQCz6HY3xgmUo3LePYUG8OarQG1M7y/view?usp=sharing
can you access the file via that link?
Note
Consumer Usage is the measure i am using. We only want to see Consumer Usage of items. Therefore the consumer usage is te metric we are measuring against. So we want to see top 5 consumer used item by Month.
Thanks
- PPStar3 years ago
Helper V
This is what i see, How do i add an .pbix file to this message? If i drag it on, it says file not compatible?