Forum Discussion

Himanshu's avatar
Himanshu
Frequent Visitor
8 years ago

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-msft's avatar
    v-qiuyu-msft
    Community 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