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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Aggregation

Hi all, 

 

I have an issue with my data source and I need to be able to report on data in the charts and tables - basically front end.

 

I need to go from the current state:

Current State

Date            Column1  Column2

31/12/2018        2                0

12/12/2018        3                1

 

to :

Desired State

Date            Column1  Column2

31/12/2018        5                1

12/12/2018        3                1

 

 

How to do it best  - front end vs back end

Many thanks,

 

 

 

9 REPLIES 9
Anonymous
Not applicable

I would really appreciate if anyone could help me to solve this.

 

Many thanks!


@Anonymous wrote:

Hi all, 

 

I have an issue with my data source and I need to be able to report on data in the charts and tables - basically front end.

 

I need to go from the current state:

Current State

Date            Column1  Column2

31/12/2018        2                0

12/12/2018        3                1

 

to :

Desired State

Date            Column1  Column2

31/12/2018        5                1

12/12/2018        3                1

 

 

How to do it best  - front end vs back end

Many thanks,

 

 

 


 

v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

To create two calculated columns as below.

 

Desired 1 = CALCULATE(SUM('current'[column1]),FILTER('current','current'[date]<=EARLIER('current'[date])))
Desired 2 = CALCULATE(SUM('current'[column2]),FILTER('current','current'[date]<=EARLIER('current'[date])))

Capture.PNG

 

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 

 

 

The adoption of your suggested solution  - FMVaggr = CALCULATE(SUM('CurrentT4'[FMV]),FILTER('CurrentT4','CurrentT4'[GL Date]<=EARLIER('CurrentT4'[GL Date])))
 
error message - "A sigle value for column "GL Date"  in table "CurrentT4" cannot be determined. This can happen when a measure  formula refers to column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."

 

vanessafvg
Community Champion
Community Champion

@Anonymous  not entirely sure what you asking but i think you could probably do a switch statement

https://docs.microsoft.com/en-us/dax/switch-function-dax

 

create a calculated column

 

desired state column1 =
SWITCH ( [column1], 

                         25

                         33 )

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

hi @vanessafvg



I need to be able to aggregate data  as the dates progress.

 

Hi @Anonymous ,

 

Could you please share your sample data or Pbix to me via One Drive,  kindly upload the files and share the link here.

 

BTW, maybe your can try to create a calculated table of an Aggregation one by using SUMMARIZECOLUMNS function as below.

Table = SUMMARIZECOLUMNS('current'[Date],"co1",SUM(current[column1]),"co2",SUM(current[column2]))

 

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 

 

 

 

 

 

Anonymous
Not applicable

Hi     @v-frfei-msft 

 

I tried as you suggested but it does not work I get error.

 

How to add the file so you could have a look , sorry I have never done that before.

 

Thanks

Anonymous
Not applicable

Hi @v-frfei-msft 

 

 

 

 

 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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