Forum Discussion

love's avatar
love
Helper I
8 years ago
Solved

How to connect and visualize values from different sources with shared configurations

Hello.

 

 

Reference file (Dropbox): https://www.dropbox.com/s/pgj4170swazar6e/MockUp2.pbix?dl=0

Description: File contains two queries, one for open work ("Tasks") and one for available resources ("Availability"). The open work has calculated measures attached which allows the user to use a date slicer to see how much work is remaining per configuration for a specific time frame. Currently I am not able to put availability for a specific time frame next to work.

 

 

 

 

User Story: I would like to display available resources (Availability[HoursTotal]) and work (Tasks[Work (h)]) for the time frame selected in the date slicer in one column chart

  • Current behavior which I am not able to solve: If I add "Availability[HoursTotal]" to the column visualization it will display the complete sum of it for each configuration on not react to the date slicer
  • Expected behavior: "Availability[HoursTotal]" only displays the hours available within the range of the data slicer for each of the configurations on the x-axis

 

 

Further challenges: Additionally I am looking into having another column chart with "Availability[Team]" as value on the x-axis and then columns which indicate a) "Tasks[Work (h)]" per team and b) "Availability[HoursTotal]" per team.

 

 

Thank you,

-L

 

  • Hi love,

     

    I noticed that there isn't any relationship between 'Availability' and 'CalendarTable'. So, the Availability[HoursTotal] won't be affected by the selected date range from slicer. You may create a measure similar to:

    Hours total measure =
    CALCULATE (
        SUM ( Availability[HoursTotal] ),
        FILTER (
            Availability,
            Availability[Date] >= MIN ( CalendarTable[Date] )
                && Availability[Date] <= MAX ( CalendarTable[Date] )
        )
    )

    Regards,

    Yuliana Gu

3 Replies

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Microsoft Employee

    Hi love,

     

    I noticed that there isn't any relationship between 'Availability' and 'CalendarTable'. So, the Availability[HoursTotal] won't be affected by the selected date range from slicer. You may create a measure similar to:

    Hours total measure =
    CALCULATE (
        SUM ( Availability[HoursTotal] ),
        FILTER (
            Availability,
            Availability[Date] >= MIN ( CalendarTable[Date] )
                && Availability[Date] <= MAX ( CalendarTable[Date] )
        )
    )

    Regards,

    Yuliana Gu

    • love's avatar
      love
      Helper I

      Hello v-yulgu-msft and thank you very much for your reply. Creating this relationship was what I was working on but I did not succeed, I am testing your proposal right now and it seems to work very well, thank you!

       

      Would you also have an insight on how to now have both availability & work displayed in the same column chart? I am completly stuck on this challenge.