March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
03-09-2018 10:02 AM - last edited 06-26-2018 09:47 AM
Given a column with a list of values, computes the Shannon Entropy for that set of values. The single measure version of this is:
ShannonEntropy = SUMX( SUMMARIZE( Entities, Entities[Entity], "H(X)", -1*COUNTROWS(Entities)/COUNTROWS(ALL(Entities))*LOG(COUNTROWS(Entities)/COUNTROWS(ALL(Entities)),2)) ,[H(X)])
There is a single input, a column, in this case called Entities[Entity].
eyJrIjoiNTkzNTU5ZjMtNTRlNi00OWUyLWIzNjUtOWNiY2IxMTk0NWZlIiwidCI6IjRhMDQyNzQzLTM3M2EtNDNkMi04MjdiLTAwM2Y0YzdiYTFlNSIsImMiOjN9