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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
PowerBIUser9901
Advocate II
Advocate II

Summarized Table Between Two Datasets

Hi, I need guidance in how I can create a summarized table between two datasets. Dataset 1 includes Sale #s and Item Count, while Dataset 2 contains Transactions #s and Item Count. There can be more than one transaction for each Sales#. The key in these datasets are the Date & Category.

 

The Screenshots below show the datasets and the desired output: (The colors show how the data is related between datasets)

Dataset.jpg

 

Desired output:

 

Desired Output.jpg

 

I tried to build a relationship using the Key (Date&Category) and create a Summairzed Table, however I could not get it to work. 

I included the PBIX file if that helps. Link Below:

https://onedrive.live.com/?authkey=%21AO0A56O38ZamOgM&id=5E807BAB3F3348D%21108&cid=05E807BAB3F3348D

 

I appreciate any help you can provide. Thank you!

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @PowerBIUser9901 

I have tried to modify your formula, according to the conditions you provided,

if you filter the data by the key you created, you will get the following result

 

Result:

v-angzheng-msft_0-1617788600277.png

Calculate table =
SUMMARIZECOLUMNS (
    'Key'[Key],
    "Transaction Number",
        CONCATENATEX (
            VALUES ( 'Dataset 2'[Transaction#] ),
            'Dataset 2'[Transaction#],
            ","
        )
)

The data on July 2 cannot be distinguished by the key alone,

if you want to separate it you need more conditions.

 

 

Is this the result you want? Hope this is useful to you.

Please feel free to let me know If you have further questions.

 

Best Regards,
Community Support Team _ Zeon Zheng
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

1 REPLY 1
v-angzheng-msft
Community Support
Community Support

Hi, @PowerBIUser9901 

I have tried to modify your formula, according to the conditions you provided,

if you filter the data by the key you created, you will get the following result

 

Result:

v-angzheng-msft_0-1617788600277.png

Calculate table =
SUMMARIZECOLUMNS (
    'Key'[Key],
    "Transaction Number",
        CONCATENATEX (
            VALUES ( 'Dataset 2'[Transaction#] ),
            'Dataset 2'[Transaction#],
            ","
        )
)

The data on July 2 cannot be distinguished by the key alone,

if you want to separate it you need more conditions.

 

 

Is this the result you want? Hope this is useful to you.

Please feel free to let me know If you have further questions.

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.