Forum Discussion

sparkplug93751's avatar
6 years ago

Measures with dates

Hello,

 

I have a date control for Week Ending dates. Using this date control I have 2 measures I'm graphing against it:

 

One uses an actual date and appears corrects (calculate(countrows(table),table[actual]<>blank

Measure 2 with the issues is (calculate(countrows(table),table[target]<>blank

 

The second measure is adding the values in the last week twice, how can this be worked around? WIll supply data shortly

 

3 Replies

  • Hello SparkPlug,

     

    Did you try to use DistinctCountNoBlank function?

     

    Hope this measure help you:

    Measure 2 = DISTINCTCOUNTNOBLANK(table[target])
     
    Please provide extra information if that measure did not help you.
    Best wishes 🙂
     

    ----------------------------------------------

    Did I answer your question? Mark my post as a solution!

  • dax's avatar
    dax
    Community Support

    Hi sparkplug93751 , 

     

    I am not clear about your requirement, if possible could you please inform me more detailed information(such as your expected output and your sample data (by OneDrive for Business))? Then I will help you more correctly.

    Please do mask sensitive data before uploading.

    Thanks for your understanding and support.
    Best Regards,
    Zoe Zhi

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