Shannon Entropy
03-09-2018 10:02 AM - last edited 06-26-2018 09:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Shannon Entropy
03-09-2018
10:02 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].
Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...
