Forum Discussion

victorbetancurt's avatar
victorbetancurt
Regular Visitor
7 years ago
Solved

Distinct Count with value in same table

Hi everyone. Beforehand, sorry for my bad english. I have a table like this ('Table1'): CODE STATE 1015 A 1016 A 1017 B 1015 B 1016 B 1017 B 1015 C 1015 A 10...
  • Cmcmahan's avatar
    Cmcmahan
    7 years ago

    Another thing you may want to try then is instead of appending the two data tables, merge them side by side.

     

    So intead of your original table, you end up with something like this:

     

    CODEPREV_STATECUR_STATECHANGED
    1015AATRUE
    1016ABFALSE
    1017BBTRUE

     

    If whatever index you're using for each row stays the same between days, this may be a better way to store your data.  Be sure to check my previous reply for DAX code to solve your original problem