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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
visheshvats1
Frequent Visitor

Help with creating a table

I have a table as below:

 

visheshvats1_0-1713856768565.png

 

I have written a measure to use in a table visual;

 
Actual YTD =
CALCULATE(SUM('General Ledger Combined Appended'[Amount USD - Dept P&L]),DATESBETWEEN('General Ledger Combined Appended'[Date],DATE(2024,1,1),DATE(2024,3,31)))
 
The Table visual is;

visheshvats1_1-1713856871716.png

I have applied visual level filters to the date column to show only 2024.

 

I wish to create a new disconnected table like this my visual. which has only these three columns year(which should be 2024), months, and values(as calculated by the measure). 

Is this possible? Any help would be greatly appreciated.

 

Thanks

 
 



1 ACCEPTED SOLUTION
v-jiewu-msft
Community Support
Community Support

Hi @visheshvats1 ,

Based on my testing, it is impossible to create a disconnected table result with another table calculated measure.

1.Create the simple table.

vjiewumsft_0-1713952524233.png

2.Create the new table.

 

Table 2 = CALENDAR(DATE(2024,1,1), DATE(2024,12,31))

 

3.Create the new year and month column.

 

Year = YEAR('Table 2'[Date])
Month = MONTH('Table 2'[Date])

 

4.Create the measure to calculate amount. Drag the measure into the Table.

 

Measure = CALCULATE(SUM('Table'[Amount usd]), ALLEXCEPT('Table', 'Table'[Year], 'Table'[Month]), FILTER('Table', YEAR('Table'[Date])= 2024))

 

vjiewumsft_2-1713952892871.png

5.Create a new values column. Drag the column into the disconnect table visual. The result is shown below.

 

valuescol = [Measure]

 

vjiewumsft_4-1713952968306.png

6.If create a connection between two tables, the result is shown below.

vjiewumsft_5-1713952976568.png

vjiewumsft_6-1713952987661.png

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-jiewu-msft
Community Support
Community Support

Hi @visheshvats1 ,

Based on my testing, it is impossible to create a disconnected table result with another table calculated measure.

1.Create the simple table.

vjiewumsft_0-1713952524233.png

2.Create the new table.

 

Table 2 = CALENDAR(DATE(2024,1,1), DATE(2024,12,31))

 

3.Create the new year and month column.

 

Year = YEAR('Table 2'[Date])
Month = MONTH('Table 2'[Date])

 

4.Create the measure to calculate amount. Drag the measure into the Table.

 

Measure = CALCULATE(SUM('Table'[Amount usd]), ALLEXCEPT('Table', 'Table'[Year], 'Table'[Month]), FILTER('Table', YEAR('Table'[Date])= 2024))

 

vjiewumsft_2-1713952892871.png

5.Create a new values column. Drag the column into the disconnect table visual. The result is shown below.

 

valuescol = [Measure]

 

vjiewumsft_4-1713952968306.png

6.If create a connection between two tables, the result is shown below.

vjiewumsft_5-1713952976568.png

vjiewumsft_6-1713952987661.png

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@visheshvats1 , In case you need YTD, join date of your table with date of date table and use columns from that in visual, measure and slicers

 

example

 

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...

 

 


Time Intelligence, Part of learn Power BI https://youtu.be/cN8AO3_vmlY?t=27510
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

 

 

 


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 :radacad sqlbi My Video Series Appreciate your Kudos.

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

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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