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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Syndicate_Admin
Administrator
Administrator

How can I show two dimensions from two different tables that can't be related

Hello Group,


I'm working on an influx of people report that tells me the people who enter the store and those who buy and I'm making a bar chart and I want to put :

X-axis = Time of day


Y-axis = distinct count encargos_id

Y-axis = count of customers who have entered

I have a board that is Alfuencia, which has this style:

migueldfr_0-1727033687901.png

On the other hand, I have the Assignments table that would have all the information of the Assignments with their respective ids.

The connection between the two tables is through the Maste Calendar table:

migueldfr_1-1727033945001.png

Then what I'm trying to do is a bar chart like this:

migueldfr_2-1727033987238.pngmigueldfr_3-1727034008127.png

As you can see, the recuentos_id bar has the same values when it shouldn't be, it should have different ones, and that's because of the table relationships, since the Flow table repeats dates for the same store, and the model conflicts, or that's what I think.

I would like you to help me visualize what I need.

Thank you very much in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @Syndicate_Admin 

Do you mean to add 'Influx Table'[date] to this virtual table? I don't know if I understood it correctly.

SummaryTable = 
SUMMARIZE(
    'Influx Table',
    'Influx Table'[date],
    'Influx Table'[DIA period],
    "encargos_id count", 
        VAR DiaPeriod = 'Influx Table'[DIA period]
        RETURN
        COUNTROWS(FILTER('Orders Table','Orders Table'[DIA period]=DiaPeriod)),
    "Sum of tickets", 
        CALCULATE(SUM('Influx Table'[Tickets]))
)

 

vfenlingmsft_0-1727331065419.png

 


Please describe your problem in more detail, and it would be nice if you could provide some simple test data that doesn't contain sensitive information, as well as a screenshot of the results you are expecting.

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

10 REPLIES 10
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Hello again,

Here I make a numerical explanation, where it could be seen much better.

Influx Table:

shopDIA perioddateTickets
x1Tomorrow21/09/202425
x1Late21/09/202463
x2Tomorrow21/09/202425
x2Late21/09/202478
x3Tomorrow21/09/202496
x3Late21/09/202415
x4Tomorrow21/09/202489
x4Late21/09/202456
x5Tomorrow21/09/2024232
x5Late21/09/2024100

Table of Orders:

shopencardos_idDIA perioddate
x11Tomorrow21/09/2024
x12Late21/09/2024
x23Tomorrow21/09/2024
x214Tomorrow21/09/2024
x24Late21/09/2024
x35Tomorrow21/09/2024
x36Late21/09/2024
x311Late21/09/2024
x412Tomorrow21/09/2024
x47Tomorrow21/09/2024
x48Late21/09/2024
x59Tomorrow21/09/2024
x510Late21/09/2024
x513Tomorrow21/09/2024

Those are the two tables that I have the data to deal with, those two tables are joined to a Master Calendar.


1. In the master calendar I can't add Morning and Afternoon as the fields would be repeated

2. I cannot join these two tables, since there would not be a 1 : 1 relationship, but many : many.

On the other hand, what I would like to obtain in the form of a table would be:

Dia period encargos_id countSum of tickets
Tomorrow 725+25+96+89+232
Late663+78+15+56+100
Anonymous
Not applicable

Thanks for lbendlin's concern  about this issue.

 

Hi, @Syndicate_Admin 

I am glad to help you.

 

Based on the data you have given for testing, I will give two methods below which I hope will help you.


First method:

Create two Measure:

 

 

SumOfTickets = SUM('Influx Table'[Tickets])

 

 

 

EncargosIDCount = 
VAR _currentrowDIA = SELECTEDVALUE('Influx Table'[DIA period])
RETURN COUNTROWS(FILTER('Orders Table','Orders Table'[DIA period]=_currentrowDIA))

 


Then drag the two Measure created to the corresponding visual:

vfenlingmsft_0-1727156758708.png

 

The second method:

Directly New Table:

 

 

SummaryTable = 
SUMMARIZE(
    'Influx Table',
    'Influx Table'[DIA period],
    "encargos_id count", 
        VAR DiaPeriod = 'Influx Table'[DIA period]
        RETURN
        COUNTROWS(FILTER('Orders Table','Orders Table'[DIA period]=DiaPeriod)),
    "Sum of tickets", 
        CALCULATE(SUM('Influx Table'[Tickets]))
)

 

 


Then drag the corresponding fields to the visual:

vfenlingmsft_1-1727156830219.png

 

 

I have attached the pbix file below, hope it helps!

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello good morning,

Thank you very much for the contribution.

To the last table created, could you add the date ?

SummaryTable =

SUMMARIZE(

'Influx Table',

'Influx Table'[DIA period],

"encargos_id count",

VAR DiaPeriod = 'Influx Table'[DIA period]

RETURN

COUNTROWS(FILTER('Orders Table','Orders Table'[DIA period]=DiaPeriod)),

"Sum of tickets",

CALCULATE(SUM('Influx Table'[Tickets]))

)

Because the date, as I've shown is 09/21/2024, but now you have every table as well
22/09/2024

23/09/2024

24/09/2024

Greetings and thank you very much

Anonymous
Not applicable

Hi, @Syndicate_Admin 

Do you mean to add 'Influx Table'[date] to this virtual table? I don't know if I understood it correctly.

SummaryTable = 
SUMMARIZE(
    'Influx Table',
    'Influx Table'[date],
    'Influx Table'[DIA period],
    "encargos_id count", 
        VAR DiaPeriod = 'Influx Table'[DIA period]
        RETURN
        COUNTROWS(FILTER('Orders Table','Orders Table'[DIA period]=DiaPeriod)),
    "Sum of tickets", 
        CALCULATE(SUM('Influx Table'[Tickets]))
)

 

vfenlingmsft_0-1727331065419.png

 


Please describe your problem in more detail, and it would be nice if you could provide some simple test data that doesn't contain sensitive information, as well as a screenshot of the results you are expecting.

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Is "Late"  equivalent to "Today"  ?

Afternoon = Between 12 PM and 12 AM (12:00 - 24:00)

Morning = Between 12 AM and 12 PM ( 00:00 - 12:00 )

Your sample data does not have time components.

I've given an example with the type of data that is in my table, that goes daily,
Influx:
changing the day, but always keeping in a series, the stores, period of time, the only thing that increases is the date and the number of enters.
Orders:

The number of stores is static, what increases is the encargos_id, date.

I don't know if I answer your question

No, sorry, not following at all. Hopefully someone else can help you further.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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