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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
dpmsvendor
Microsoft Employee
Microsoft Employee

Measure to create totals by grouping within table

Hi, I need to create a measure that I will use to divide in another measure. The trick is to group one of the measures by quarter.

 

Here is how the data is set up. The start date has a relationship to a calendar table which has the quarter column:

Respondent IDStart DateAttribute.1Value
a1236/1/2022color redyes
a1246/2/2022color redmaybe yes
a1256/3/2022color redneither yes or no
a1266/4/2022color redmaybe no
a1276/5/2022color redno
a1286/6/2022color blueyes
a1296/7/2022color bluemaybe yes
a1306/8/2022color blueneither yes or no
a1316/9/2022color bluemaybe no
a1326/10/2022color blueno

 

Here is what I'm trying to accomplish. The left table is what I have now, and the right table shows what I need:

dpmsvendor_0-1657753097912.png

Count Respondent ID, All and % are all measures.

  • Count Respondent ID = CALCULATE(COUNT('table'[Respondent ID]))
  • All = CALCULATE(COUNT('table'[Respondent ID]),ALLSELECTED('table'[Value]))
  • % = DIVIDE('table'[Count Respondent ID], 'table'[All])

Would appreciate any help and advice. Thanks!

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks Ashish! Worked perfectly

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors