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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Silvermountain
Frequent Visitor

Divide combines denominator

Hello!

 

If I'm dividing two measures, I end up with a strange result. I have the following data:

Aanvraag nr (consider it a salesorder number)

Total send per aanvraag nr

Total used per aanvraag nr

Customer name (not included in the screenshot)

Contact person name (not included in the screenshot)

 

Silvermountain_0-1703066864426.png

 

For the number send (verzonden) and used (gebruikt) I simply count the number of rows for the aanvraag nr and this returns the right value:

Silvermountain_1-1703066965957.png

 

When I try to calculate the percentage (used/send), it combines the number of send vouchers per contactperson. 

 

What should I do to avoid this? Clearly, 1 divided by 1 is not 0,07%. 1 divided by 1350 is tough.

 

Thanks!

1 ACCEPTED SOLUTION
FarhanAhmed
Community Champion
Community Champion

It seems that your Vouchers table does not have a join with "Aanvraag nr" table. try to create one.

 

Try to put "Anatal verzonden vouchers" in the table and see the results.







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
FarhanAhmed
Community Champion
Community Champion

It seems that your Vouchers table does not have a join with "Aanvraag nr" table. try to create one.

 

Try to put "Anatal verzonden vouchers" in the table and see the results.







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Thanks for the help. The relationship itself can't be the isue, since all data originates from the same table. Reviewing this did help me find the solution tough, I had to use the aanvraagnr from the table were this number is the primary key.

 

Problem solved, thanks for the help 🙂

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.