+ Reply to Thread
Results 1 to 1 of 1

Dax allexcept

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    771

    Dax allexcept

    I've been trying to use allexcept , and failing,


    I have a measure for Monthly average by year ;

    AVERAGEX(VALUES('Calendar'[MMM-YYYY]),[Tunits])

    Which Have then used in two version to get rolling average

      YTD avg:=CALCULATE([MonthAvg],DATESYTD('Calendar'[Date]) )
    and
                            CALC Rolling Avg:=VAR  mdate = MAX('Calendar'[Date]) 
                                                                 RETURN 
                                                            CALCULATE([MonthAvg],
                                                                  FILTER(CROSSJOIN(ALL('Calendar'[Date]),VALUES('Calendar'[Year])),
                                                                            'Calendar'[Date]<=mdate)
                                                                                 )
    Rather than using CROSSJOIN ALL and VALUES, could I use ALLEXCPT instead? and if so how?

    Richard
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. DAX ALLEXCEPT versus ALL & VALUES in Power Pivot
    By Dicken in forum Office 365
    Replies: 4
    Last Post: 08-04-2022, 09:17 AM
  2. Replies: 0
    Last Post: 07-10-2022, 11:34 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1