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
giobro
New Member

Divide Column By Column

Hi,

Is there a way to divide the count of bar marks per slice (i.e. 3 E12 for Slice S002) by the count of slices in a segment (i.e. 3 S002 for segment 01N)? 
The results for column S002 and row E12 would be 3/3 = 1.

 

giobro_1-1742972010155.png

 

Thank you,
Giovanni

 

5 REPLIES 5
v-priyankata
Community Support
Community Support

Hi @giobro 
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

v-priyankata
Community Support
Community Support

Hi @giobro 
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

v-priyankata
Community Support
Community Support

Hi @giobro 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Karsurya12_03
Helper I
Helper I

Hi @giobro ,

Create a measure as

 Result=

var A= count (your table[Bar mark])

var B=Distinctcount(your table[Segment])

result(A/B)

 

Regards,

Surya.

bhanu_gautam
Super User
Super User

@giobro Create a measure to count bar marks per slice:

BarMarksPerSlice = COUNTROWS('YourTable')

 

Create a measure to count slices in a segment:

SlicesInSegment = CALCULATE(
DISTINCTCOUNT('YourTable'[SliceColumn]),
ALLEXCEPT('YourTable', 'YourTable'[SegmentColumn])
)

 

Create a measure to divide the count of bar marks per slice by the count of slices in a segment:

Result = DIVIDE([BarMarksPerSlice], [SlicesInSegment])




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






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