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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Create new table with calculated columns and current date

Hi, I have a table with Status column having different statuses like 'Deployed', 'End of Life', 'Ordered', etc. The source table gets updated daily along with status of existing values but their is no date column to measure when the status got modified. I am trying to build a report which gives me count of each status on a particular date by either comparing from previous run or put a date column in new table with count of each status. For Example:

 

Original Table:

Status Column having multiple value of statuses like 'Deployed', 'End of Life', 'Ordered', 

 

New Table Data: 

Date: 10/28/2018 (when report is run)

Count of Deployed Status: 100

Count of End of life Status: 300

Count of Ordered Status: 150

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.


Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @Anonymous,

 

We can create a calculated table using the formula.

 

Table2 = 
SUMMARIZE (
    ADDCOLUMNS (
        'source table',
        "date", TODAY (),
        "Deployed", CALCULATE (
            COUNTA ( 'source table'[Status] ),
            FILTER ( 'source table', 'source table'[Status] = "Deployed" )
        ),
        "End of Life", CALCULATE (
            COUNT ( 'source table'[Status] ),
            FILTER ( 'source table', 'source table'[Status] = "End of Life" )
        ),
        "Ordered", CALCULATE (
            COUNTA ( 'source table'[Status] ),
            FILTER ( 'source table', 'source table'[Status] = "End of Life" )
        )
    ),
    [date],
    [Deployed],
    [End of Life],
    [Ordered]
)

Capture.PNG

 

For more details, please check the pbix as attached.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @Anonymous,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.


Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Hi @v-frfei-msft thanks a lot for providing the solution and your help. It worked! 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors