Forum Discussion
Logic for custom buckets
Hi Team, I am new to power bi, Can you help me to create these bucket as shown in screen shot. We have Emp ID available in our tables but how to show count of EMP between 2016/2017 buckets?
And what is the best visualization we can use to show these types of graphs. ?
Is I have to use IF condition to create these bucket ..? as ::
IF(Data[Amount]<=1000 && YEAR(Data[Date])=(MAX('Date'[Year])-1) || Data[Amount]<=1000 && YEAR(Data[Date])=MAX('Date'[Year]),"<1",
IF(Data[Amount]<=1000 && YEAR(Data[Date])=(MAX('Date'[Year])-1) || Data[Amount]>=1000 && Data[Amount]<2001 && YEAR(Data[Date])=MAX('Date'[Year]),"<1",............................
5 Replies
- v-qiuyu-msftCommunity Support
Hi Himanshu,
For the screenshot, you need to use Matrix visual to visualize data, Bucket 2017 in Row group, Bucket 2016 in column group and the count values as matrix values. You can go through this tutorial to learn matrix visual.
For your requirement, it would be better you can share some sample data of source table, so we can try to test how to model data.
Best Regards,
Qiuyun Yu- HimanshuFrequent Visitor
Hi v-qiuyu-msftQiuyun,
Thanks for reply.. I have attached an excel file.. We have to craete 2 bucket (for 2016/2017) and show the count of Emp between them.
https://www.dropbox.com/s/o6b429w5pagjmkj/Data_Sample.xlsx?dl=0
- v-qiuyu-msftCommunity Support
Hi Himanshu,
Can you clarify the logic to return the "<1","1-2" and ">2", and "count of Employee between 2016 and 2017 bucket" regarding your sample data?
Best Regards,
Qiuyun Yu