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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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
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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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