+ Reply to Thread
Results 1 to 3 of 3

DAX Related table using a comparison operator

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

    DAX Related table using a comparison operator

    Hello,

    I've created a simple table of order and ships dates and would like to count the rows that fall between a date in each.

    to do this I created to further table just containing one column one row, start date and table 2 end date,

    my ideas was to do somthing like ;


    CountR = Count rows measure .

    Please Login or Register  to view this content.
    but instead of the 1 and 100, which I've just put in as had to put in something ,

    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    I have attached the workbook with these.


    but I hven't had any success, I don't think I can use RELATED after a comparison operator, but can't find anything about this,
    I don't think I just dreamt it up. Can anyone help.

    Richard
    Attached Files Attached Files

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: DAX Related table using a comparison operator

    Why are you using RELATED when there is no real relationship between the tables? I can see you've created relationships, but they make no sense.

    I suggest you delete them, then just use VALUES('End'[End]) to get the end date and similarly for the start date.
    Rory

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

    Re: DAX Related table using a comparison operator

    Thanks for the suggestion,

    RD

+ 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. Logical Operator Date Comparison
    By chandramouliarun in forum Excel General
    Replies: 1
    Last Post: 04-28-2017, 05:26 PM
  2. converting a string having a comparison operator into boolean
    By allsourav in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-07-2016, 11:37 AM
  3. [SOLVED] Comparison operator > not working
    By mottoth in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-01-2014, 09:23 AM
  4. [SOLVED] Logical Formula with comparison operator not behaving as expected
    By attal in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-26-2013, 02:13 PM
  5. [SOLVED] need formula for comparison operator
    By Mindoz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:42 PM
  6. [SOLVED] Pivot table soustraction operator
    By RGO in forum Excel General
    Replies: 0
    Last Post: 03-16-2006, 11:10 AM
  7. "IN" comparison operator
    By Jared in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2005, 01:06 PM

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