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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
suadmohammed
New Member

I want help in creating a bar graph with two date columns in the same table

My data table has two date columns as per below snip. I want a bar graph with two bars for each month , one bar for how many were received in a given  month and one bar for how many were completed in a given month. I can only make two seperate graphs for this but i cant figure out how to have both columns displayed on the same visual

 

suadmohammed_0-1757075645643.png

suadmohammed_1-1757075665209.png

 

 

3 REPLIES 3
suadmohammed
New Member

Hi jaineshp . Thanks for taking a look at my problem and your solution. I tried the DAX solution and i had a question. for the x axis which columns month should i use since i dont have a month column. 

HI @suadmohammed 

 

The Power Query reshape is a correct modeling solution, which makes the chart trivial and reusable for other visuals too.

 

In Power Query, you can follow the UI approach or paste below M code in a New Query, 

let
    Source = FactRaw, //Replace your table name
    ReceivedTable = Table.SelectColumns(Source, {"Item", "Date Received"}),
    ReceivedRenamed = Table.RenameColumns(ReceivedTable, {{"Date Received", "Date"}}),
    ReceivedWithStatus = Table.AddColumn(ReceivedRenamed, "Status", each "Received"),
    CompletedTable = Table.SelectColumns(Source, {"Item", "Date Completed"}),
    CompletedRenamed = Table.RenameColumns(CompletedTable, {{"Date Completed", "Date"}}),
    CompletedWithStatus = Table.AddColumn(CompletedRenamed, "Status", each "Completed"),
    CombinedTable = Table.Combine({ReceivedWithStatus, CompletedWithStatus}),
    SortedTable = Table.Sort(CombinedTable, {{"Date", Order.Ascending}})
in
    SortedTable

Disable loading your Old table ('FactRaw' in below Demo) and only load your new table ('Fact')

MasonMA_0-1757095048485.png

 

Build a Date table with DAX (Adjust you date range accordingly)

DateTable =
ADDCOLUMNS (
    CALENDAR ( DATE(2025,4,1), DATE(2025,10,31) ),
    "Year", YEAR ( [Date] ),
    "Month", MONTH ( [Date] ),
    "Month Year", FORMAT ( [Date], "MMM YYYY" )
)

 Create a one-to-many relationship 

MasonMA_1-1757095299061.png

 

Tweak the formatting so that you will have the right visual. 

MasonMA_2-1757096425018.png

In case you would like to see the demo click here

Hello @suadmohammed,

The comment that you responded to has been removed.  I hope you are able to get a solution for your question.

 

Best,

Natalie H.

Community Manager 

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors