Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Greg_Deckler
Super User
Super User

Super Groups Extended Question

This is an extension question to my blog on Groups and Super Groups. @Vvelarde perhaps you can bail me out yet again!

 

Super Groups blog article:

https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149

 

So, in the original model with columns, in the SuperGroups table, I could create a column like:

 

Maturity = IF([MinScore]<50,"Bad","Good")

I could then create a column chart that showed me the count of "Bad" versus "Good" with "Maturiy" as the Axis and "Count of SuperGroup" as the Values

 

Switching this up to a measure however, I can create a similar measure for maturity. However, I cannot get the count of "Bad" and "Good" in the same way because I cannot use the Maturity as a Measure for the Axis.

 

Do you think I could use the disconnected table trick as in my last question about using measures in rows to solve this one too?


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
2 REPLIES 2

Maybe off topic, but what is wrong with your current column design?  This column would compress really well and take negligible space. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Hey @MattAllington, hope you are well! You have to read through the article, the column approach causes problems when you store multiple "things" in your main fact table and try to use RLS or slicers to select which set of "things" you want to look at. But, I think I solved it.

 

Here is what I did:

 

Created a disconnected table called SuperGroupMaturity:

 

Maturity

Bad

Good

 

Created the following measures:

 

Bad = COUNTX(FILTER(SUMMARIZE ( SuperGroups, SuperGroups[SuperGroup], "Maturity",[MinScoreMeasure] ),[Maturity]<50),[Maturity])

Good = COUNTX(FILTER(SUMMARIZE ( SuperGroups, SuperGroups[SuperGroup], "Maturity",[MinScoreMeasure] ),[Maturity]>50),[Maturity])

Then, created this measure:

 

Measures to Show = 
IF(
     HASONEVALUE(SuperGroupMaturity[Maturity]),
     SWITCH(
          VALUES(SuperGroupMaturity[Maturity]),
          "Bad",[Bad],
          "Good",[Good]
	 )
)

Then I could create a column chart with an Axis of "Maturity" from my SuperGroupMaturity table and "Measures to Show" as my Value.

 

I'm pretty sure this is solid and works. If anyone wants to confirm, I'll have to add this as an addendum to the blog post.

 

 

 


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.