Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Possible Group By required - how?

Hi, I have the following tables: Table A id 6 7 8   Table B id           a-id           status 1            6               val 2            6               end 3            7          ...
  • Anonymous's avatar
    Anonymous
    8 years ago

    Okay, so I've resolved it myself.

    So to help others, here is what I did...

     

    1) In Power Query, I created a conditional column and assigned 1 to every status value that was not 'validated' or 'validated'.

    2) In DAX, I wrote:

    tblScriptPacketsCompleted = FILTER(
    SUMMARIZE(
    refSCRIPT_VALIDATION,
    refSCRIPT_VALIDATION[packet_id],
    "Values", SUM(refSCRIPT_VALIDATION[ValidatedORValidated_Rejected])
    ),
    [Values] = 0
    )

    3) mScriptPacketsCompleted = COUNT( tblScriptPacketsCompleted[packet_id] )

     

    The measure in Step 3 had the answer I assigned to my card visual. Easy isn't it... when you know how ;-)

    Hope this helps others.