Quantcast
Viewing all articles
Browse latest Browse all 217157

Sunburst Measures as Values not appearing

Morning;

 

I'm trying to use the Sunburst Visual to show the last week and the week before that's sales for the section from which they were sold as well as the day of the week they were sold in.

 

When I use the column value it appears; but shows all of the data.

When I use my past week measure as the Value; it doesn't show anything and I'm not sure why?

 

P1WNetSales = 
VAR CurrentWeekNum =
    MAX ( 'ExtendedCalendar'[WeekNum] ) - 1
VAR CurrentYear =
    MAX ( 'ExtendedCalendar'[Year] )
RETURN
    (
        CALCULATE (
            SUM ( 'itemdetailsdogfood$'[Net Sales] ),
            FILTER (
                ALL ( 'ExtendedCalendar' ),
                ExtendedCalendar[Year] = CurrentYear&& 'ExtendedCalendar'[WeekNum]
                    = CurrentWeekNum - 0
            )
        )
)

Image may be NSFW.
Clik here to view.
18d0808c96bd6faed82ab1471fbf3dbb.png

 

Do I need to make it a column instead? I've tried copying the code and nothing appears in the column.


Viewing all articles
Browse latest Browse all 217157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>