Forum Discussion

itsranga's avatar
itsranga
Helper I
1 year ago
Solved

Selected Value based Last 7 days value required

Hi,     I have a 3 table 1. Table1 2. Table2 3. Calender Relationship         In power bi page i have 2 table first table for Table1 vallues ,  2nd table for Table2 values   Act...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi, itsranga 

     

    I failed to open your link. I have simply modelled some data which I hope will solve your problem.

    Measure = 
    SWITCH(TRUE(),
    SELECTEDVALUE(Table1[CreatedDate])=BLANK(),1,
    SELECTEDVALUE(Table2[Schedule date])<=SELECTEDVALUE(Table1[CreatedDate])
      &&SELECTEDVALUE(Table2[Schedule date])>=SELECTEDVALUE(Table1[CreatedDate])-6,1,
    0)

    The two tables cannot be related. Is this the result you expect?

     

    Best Regards,

    Community Support Team _Charlotte

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