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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
RaghuVi
Regular Visitor

Power BI Editor Query

Hi

 

I need some help in getting solution for below issue.  I have imported 2 tables from SQL Tables (1) CUSTTANS (2) CUSTSETTLEMENT.  Both the tables have transaction date (TransDate) which I have grouped into Periods e.g. Jan-17, Feb -17, Mar-17 and so on.  Now I wanted to get sum values of Column "SettlementAmount CUR" from Table 2 (CUSTSETTLEMENT) against each record period into Table 1 (CUSTTRANS) on a condition that the periods match in both the tables.  The tables also have relationships established.    I have various syntax available on line but am not successful.  I used merged query but it is taking too long to display values in re

1 REPLY 1
Anonymous
Not applicable

A far simplier solution would be to create a Date Table, which itself stores the monthly information.

 

Next import the 2 table separately into Power BI, leaving the dates as individual dates.

 

Join the SQL tables together using their standard keys, ignoring the date issue.

Join the SQL tables to the date table.

 

Create a visual using the Month information in your date table and add columns/measures to the visual.  The relationships should do the heavy lifting here.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.