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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Deepak3Arora
Frequent Visitor

Divide by a Group

Hi Guys,

 

I am trying to Divide a data by a Sum of Data grouped on 2 columns.

 

Below is my Data:

DateTypeResult

1-Sep-22Type AGood
2-Sep-22Type ABad
3-Sep-22Type AGood
4-Sep-22Type BBad
5-Sep-22Type BGood
12-Oct-22Type BBad
13-Oct-22Type BGood
14-Oct-22Type CGood
15-Oct-22Type CGood

 

Result Needed is:

 %age of Good 
MatrixSeptember'22October'22
   
Type A(2/3)*100 = 66.666666670
Type B5050
Type C0100

 

How can I Achieve it?

2 ACCEPTED SOLUTIONS
jennratten
Super User
Super User

Hello - I have attached a sample pbix demonstrating how you can achieve the result.

jennratten_1-1653661728581.png

 

View solution in original post

v-jingzhang
Community Support
Community Support

Hi @Deepak3Arora 

 

Try this measure

vjingzhang_0-1653991225320.png

 

Also, add Month column to the table. Sort Month column by Month number column. 

vjingzhang_1-1653991252565.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @Deepak3Arora 

 

Try this measure

vjingzhang_0-1653991225320.png

 

Also, add Month column to the table. Sort Month column by Month number column. 

vjingzhang_1-1653991252565.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Deepak3Arora
Frequent Visitor

Hello @jennratten ,

 

Thanks for the Details.

 

But I just need Percentage of Good, Divide by that current group(Based on Type and Month) Total.

For eg : Sepetmber Type A% - 66.6%

 

Sorry If I could not detail it out well earlier.

 

Regards

Deepak

jennratten
Super User
Super User

Hello - I have attached a sample pbix demonstrating how you can achieve the result.

jennratten_1-1653661728581.png

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors