Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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.
Thank you,
Giovanni
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.
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.
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.
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.
@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])
Proud to be a Super User! |
|
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!