Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Icon for Administrator rankAdministrator
3 years ago
Solved

Monthly comparison by categories

Hello everyone. I'm new to this power bi and dax thing and I need your help. I have a record that contains thousands of products, each with its price and category (the category is divided int...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Syndicate_Admin ,

     

    If you want to calculate the average price of the category for the month, you can create a Dimdate table by CALENDAR()/CALENDARAUTO() function. Then create a measure by average function.

    Data model:

    Measure:

    Avg = 
    AVERAGE('Table'[Price])

     Result is as below.


    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.