Forum Discussion

ben_har's avatar
ben_har
Frequent Visitor
2 years ago
Solved

Help with a complex problem please. Have tried 2 solutions.

Hi. I have a dataset that I am pulling from my work server including a bunch of information about business, projectid(distinct), created date of these projects and so on. What I want to do is s...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi ben_har ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) This is my test data. 

    (2) We can create a measure. 

    Measure = CALCULATE(DISTINCTCOUNT('Table'[projects]),FILTER(ALLSELECTED('Table'),'Table'[date]<=MAX('Table'[date])))

    (3) Then the result is as follows.

     

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

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