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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Creating Calculated Table help

I am trying to create a (calculated?) table that will provide the following:

 

Column1 = yesterday's date (truncated)

Column2 = COUNTROWS (from another existing table in my report/dataset)

 

I'm seeing documentation but not anything that helps me understand how to write this in DAX, defining each column as needed.

 

Desired result:

ReportDate, Volume
09/11/2023, 132

My plan is to use PowerAutomate to refresh this report, then export this table to .csv and save to Sharepoint, then add that Sharepoint as a data source back to the report so I can keep a running 7-day total of volume each day.

Ultimately it will look like this,
ReportDate, Volume
09/05/2023, 90
09/06/2023, 103
09/07/2023, 98
09/08/2023, 110
09/09/2023, 122
09/10/2023, 96
09/11/2023, 132

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I'm not sure why my previous attempt doesn't work. I was able to get it by doing "New column" and adding the functions that way. I don't see anything in the documentation that explains why it must be done this way..

Brenden_1-1694611103491.png

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

I tried another way, but no luck. At least this shows clearly what I am trying to do. Any ideas?

Brenden_0-1694610881514.png


How can I get these functions to work?

Anonymous
Not applicable

I'm not sure why my previous attempt doesn't work. I was able to get it by doing "New column" and adding the functions that way. I don't see anything in the documentation that explains why it must be done this way..

Brenden_1-1694611103491.png

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.