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
MrNew
Frequent Visitor

Measure adds rows to table that don't exist

Hi

 

I've trawled the forums for this and there's a few questions that are similar but the answers seem to give very specific solutions / measures that don't explain what's happening or the question is left unanswered. 

 

I have Table 1 and Table 2, with a 1:1 relationship between document ID:

MrNew_0-1661469714451.png

 

If I create a table visual with data from Table 1, the result is as expected

 

MrNew_1-1661469809776.png

 

Same with Table 2

MrNew_2-1661469823929.png

 

If I combine the two tables in a visual, with Document ID, poststatus and dispatch_status, result is still all good:

 

MrNew_3-1661469866788.png

 

Now where I run into issues is adding a measure. My measure is literally only adding a number "=1"  like so:

MrNew_4-1661469923632.png

 

If I add it to table 3, the result is as follows:

 

MrNew_5-1661469946392.png

 

My Expected result would be 

 

document_iddispatch_statuspoststatusMeasure
1deletedD1
2postedP1

 

 

instead, PowerBI adds 3 extra rows for each documentID for whatever reason (please someone elighten me)

 

This is sample data, but i'm trying to create measures in the live file and the above is really throwing me off. 

 

Thanks in advance 

 

 

 

6 REPLIES 6
v-xiaotang
Community Support
Community Support

Hi  @MrNew 

Thanks for reaching out to us.

This seems to be some kind of typical problem: when the relationship is not clear, the measure will be calculated for each row. please share the sample file, we'll troubleshoot it.

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

MrNew
Frequent Visitor

@amitchandak i've changed it to one to many, treating one table as a master. No change in table 3:

 

MrNew_0-1661487640171.png

 

Table 3:

 

MrNew_1-1661487669250.png

 

MrNew
Frequent Visitor

So nobody knows why this happens? 

MrNew
Frequent Visitor

@amitchandak thanks for the response. How do I add a master table with one to many directional join, if there is only ever one documentID for each row in both tables? 

@MrNew , Treat one of them as master or better merge them in power query 

 

 https://radacad.com/append-vs-merge-in-power-bi-and-power-query

amitchandak
Super User
Super User

@MrNew , Prefer to make it one to many single directional join. One of the table should act as master

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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