Forum Discussion

HZAFAR's avatar
HZAFAR
Regular Visitor
4 years ago

build Relationship Problem

Dear Team,

I have three different data-sheet in Power Bi and trying to build a relationship based on the date dimension table but facing the below error.
scenario
When I use each table wk# to create a visual in PBI, the data spread is correct for each data sheet week on week basis.
However, when I create many to many relationships (suggested by Power query automatically and without any other option), the table visual or line chart shows the total quantity only each week instead of each week's quantity. Kindly see below some sample data tables.

 

 

2 Replies

  • AUDISU's avatar
    AUDISU
    Resolver III

    Hi HZAFAR ,

    Create a calender table. Build all relationships with this calender table and check.

    Use following DAX code to create calender table.

    Calender = CALENDAR (DATE (2022, 1, 1), DATE (2023, 12, 31))

     

    Thank you.

    • HZAFAR's avatar
      HZAFAR
      Regular Visitor

      This is not working.

       

      secondly i need to create week number and DAX function is not giving me the correct wek day as complared to excel based formula (=ISOWEEKNUM(Date)