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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors