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
Anonymous
Not applicable

Help with Grouping totals as a measure need help

 

Hi there, 

 

I have the headers as per below. I would look to create a measure that calculates the total number of responses per Classroom session ID. I would like the classroom ID 454004 to provide the total 2? Any ideas would be appreciated... I am absolutely stumped.

 

User IDClassroom Session ID NumberSum of Responses
c7775104411921
c7775104411931
c7775104411951
cm05d8x4442821
cm05gws4443361
cm02s134443371
cm044b14443401
cm044b14443451
cm05gws4443461
cm044b14444861
cm05gws4444891
cm044b14444951
cm044b14445001
cm044b14445071
cm03fx74445341
cm09z154445921
cm07f0f4466851
c5971774540041
cm01o644540041
1 ACCEPTED SOLUTION

Try:

Count =
CALCULATE (
    SUM ( Table[Sum of Responses] ),
    ALLEXCEPT ( Table, Table[Classroom ID] )
)




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

10 REPLIES 10
Anonymous
Not applicable

Basically I wanted to group the total count of User IDs, that attended each classroom session. Sorry if I am not explaining this very well.

Try:

Count =
CALCULATE (
    SUM ( Table[Sum of Responses] ),
    ALLEXCEPT ( Table, Table[Classroom ID] )
)




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Thanks 🙂 This did the job :)!!!

Please mark the appropriate answer as the solution to close th thread and helps others searching for similar solutions. Thanks!





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






GzzztBrain
Helper II
Helper II

Try:

MyMeasure = countax(filter(MyTable, [Classroom]=454004),[Classroom])
 
You can then drop the measure onto the page and it will show the value, 2.
Anonymous
Not applicable

Thank you GzzztBrain for the response. No joy. I am trying to find the number or occurances appear of the classroom ID. that one classroom I required 2 was just an example of the total I am expecting.

 

I really appreciate the help 🙂

In that case you don't want a measure. Drop a Matrix onto the page instead. Pop the Classroom into both the Rows and the Values, and make sure the latter is set to Count.

 

GzzztBrain_0-1660822487222.png

You can also do it with a Table, where you just drop the Classroom into the Columns twice, and set the second one to Count. Same result but I like to think the Matrix is more intuitive and allows you to add a second dimension (columns) if you like. 

 

Anonymous
Not applicable

Annoyingly I do not use visuals for Power BI. I need to do all calculations in Power BI and then export the table.  The visual element and editing is quite straight forward. I just need all the different tables to talk to each other.

Hmm... I may not have sufficient expertise to address the question then, but if I were in your shoes I'd use the visual anyway. You can export the data from the visual.

 

GzzztBrain_0-1660822899366.png

 

Anonymous
Not applicable

Thank you very much for your time GzzztBrain This will have to be my work around for now.

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.