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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
armeizal
Regular Visitor

Create new calculated table with multiple calculated column from 2 different tables with DAX

Hello,

I am new to this. I need help to add new calculated table with multiple calculated column with DAX.

 

I have 2 table as below:

 

Table A:

 

Date AList A
1/07/2020Content A1
1/07/2020Content A2
1/07/2020Content A3
12/07/2020Content A4
12/07/2020Content A5
12/07/2020Content A6
12/07/2020Content A7
12/07/2020Content A8
12/07/2020Content A9

 

Table B:

 

Date BList B 
1/07/2020Content B1
1/07/2020Content B2
1/07/2020Content B3 
1/07/2020Content B4 
1/07/2020Content B5 
12/07/2020Content B6 
12/07/2020Content B7 

 

I would like to count the content in table A and table B based on date as follow:

 

DateList A CountList B Count
1/07/202035
12/07/202062

 

How to do that?
Thank you.

1 ACCEPTED SOLUTION
harshnathani
Community Champion
Community Champion

Hi @armeizal ,

 

 


Make sure you have a date calendar and it has been marked as the date in model view.
Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

 

Create 2 measurse

 

COUNTTableA = COUNT('TableA'[ListA])

 

CountTableB = COUNT('TableB[ListB])

 

 

 

 

1.jpg2.JPG

 

Regards,

Harsh Nathani

 

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@armeizal , Create a common date table and use countrows from each table .

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...


Appreciate your Kudos.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
harshnathani
Community Champion
Community Champion

Hi @armeizal ,

 

 


Make sure you have a date calendar and it has been marked as the date in model view.
Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

 

Create 2 measurse

 

COUNTTableA = COUNT('TableA'[ListA])

 

CountTableB = COUNT('TableB[ListB])

 

 

 

 

1.jpg2.JPG

 

Regards,

Harsh Nathani

 

Hello @harshnathani 

It works for me, but there are blank space between 24-Jul to 30-Jul, but it wouldn't be a problem for my needs when I use this table to line chart.

 

armeizal_1-1596072321649.png

Thank you.

 

Hi @armeizal ,

 

Thanks . If this works kindly mark this as a Solution so that it helps other community members.

 

Cheers,

Harsh Nathani

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors