Forum Discussion

AbhinavJoshi's avatar
AbhinavJoshi
Icon for Responsive Resident rankResponsive Resident
2 years ago
Solved

Help understanding measure

Hello, 

 

Asking for something very simple. I have created the following measure to return the average price 

Average Retail Price =
    AVERAGE(
        'Product Lookup'[ProductPrice]
        )
When I use this measure with my column Start of the Year it returns the same values for all the rows, but when I use it with other fields such as Category Name, it returns different/correct values. I believe this is due to how filters are propagating through my model as Calendar is not related to product lookup but not sure. Can anyone explain why this is happening?

This is my model

Thank you for helping.

 
  • Hi AbhinavJoshi,

     

    You are correct, this has to do with filter propogation. It's easiest to visualize if you follow the arrows in your data model. Looking at the model, I would expect your measure on Product Lookup to return the same value for every field, except those coming from Product Categories Lookup and Product Subcategories Lookup.


    ----------------------------------
    If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

     

    P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.

1 Reply

  • Wilson_'s avatar
    Wilson_
    Icon for Memorable Member rankMemorable Member

    Hi AbhinavJoshi,

     

    You are correct, this has to do with filter propogation. It's easiest to visualize if you follow the arrows in your data model. Looking at the model, I would expect your measure on Product Lookup to return the same value for every field, except those coming from Product Categories Lookup and Product Subcategories Lookup.


    ----------------------------------
    If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

     

    P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.