Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Count unknown data with date possible?

Hi Power Community!

so this shows the "known" data and "unknown" data (data with no delivery date or forwarder). So far so good. 

 

Now I have a date slicer. If you use the date slicer it for the last months it only shows the known data.

The reason is that the unknown data has of course no date but my boss wants to know how much unknown data we have every month not only overall....

 

Thank you for your time.

 

 

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous ,

     

    According to my understanding, you want to display total/known/unknown data based on date slicer, right?

    You could try this:

    Total = COUNTROWS('Table') 
    Known Data =
    COUNTROWS (
        FILTER (
            'Table',
            'Table'[DeliveryDate] <> BLANK ()
                && 'Table'[Forwarder] <> BLANK ()
        )
    ) + 0

     The final output looks like this:

    Please kindly check my pbix file here.

     

    Best Regards,
    Eyelyn Qin

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

5 Replies

  • Anonymous ,

    for unknown data use like

     unknown new = calculate([unknown], all(Date), isblank(Table[Deilvery Date]))

    or

     unknown new = calculate([unknown], all(Table), isblank(Table[Deilvery Date]))

    or

     unknown new = calculate([unknown], filter(all(Table[Date]), isblank(Table[Deilvery Date])))

    • Anonymous's avatar
      Anonymous
      Not applicable

      amitchandak Thanks for the help.

      now the number of unknown data is constant but it still does not change with the date slicer. Do you have an idea?

      • AllisonKennedy's avatar
        AllisonKennedy
        Community Champion

        Anonymous  You need to have a date column for reference. What is your data source? Is there a created or modified date we can use? You may need to use the DAX function USERELATIONSHIP() to use an inactive relationship between date table and modified date to know when the unknown data was modified or created??

         

        Hopefully that makes some sense? 

         

        Without some date, we can't know which numbers apply to each month.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    According to my understanding, you want to display total/known/unknown data based on date slicer, right?

    You could try this:

    Total = COUNTROWS('Table') 
    Known Data =
    COUNTROWS (
        FILTER (
            'Table',
            'Table'[DeliveryDate] <> BLANK ()
                && 'Table'[Forwarder] <> BLANK ()
        )
    ) + 0

     The final output looks like this:

    Please kindly check my pbix file here.

     

    Best Regards,
    Eyelyn Qin

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

    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous Excuse me. I had no time in the holiday season...

      Thank you for your time - it worked perfectly ğŸ˜Š