Forum Discussion

wneiton's avatar
wneiton
Resolver I
7 years ago
Solved

join information from different tables

Hi, I am learning PBI and I would be glad to have some help. I have 3 tables in relationships in PBI as you can see below.  What I need to know is how to get the amount of animal each Farm has. D...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi wneiton

     

    1. Set the relationship between these tables.

    Farm -> Flock ( One to Many, Filter direction is from Farm to Flock)

    Flock -> Animal ( One to Many, Filter direction is from FLock to Animal)

     

    2. Create a new measure for Animal count = COUNT( Animal[AnimalID])

     

    3. Pull Farm Name ( From Farm Table), and Animal count measure to the visual.

     

    4. You can use this formul for the buckt option : IF ( Animal count < 100 , "Upto 100 Animals", IF( Animal count >= 100 && Animal count < 200 ,"100-200 Animals","Above 200 Animals")) and create a slicer based on this.

     

    Thanks
    Raj