33
Views
8
Comments
Solved
Question related to add the entities data and display in table
Question
Application Type
Reactive

 I want to add the monthly data and show below that particular month.

UserImage.jpg
Naveen Theja
Solution

The answer is to use structure list where we map data coming from aggregate and same structure we want to loop again.

UserImage.jpg
Narendra Maheshwari

Hi Naveen,

You can either create a screen to insert the monthly data into your database table or import a csv/excel file based on your use case to add the monthly data.

As I can see, you have a Year range filter. You just need to add another Month filter, and based on that, you can fetch monthly data from entity. 

 Let me know if you need more information.

Thanks,

UserImage.jpg
Naveen Theja

Thanks for your replay.

Actually, I calculated the monthly data also. What my requirement is to display the total monthly data under that particular month.


UserImage.jpg
Narendra Maheshwari

Is it correct that you wanted to sum your monthly data? if yes then you can use Group by with SUM. It will calculate the total sum of monthly data based on the month and year.

2020-01-08 12-23-57
Jitender Gaur

Hi, 

You can use a aggregate to fetch the data from entity. In aggregate you can use create a new attribute to sum three month data to show as a revenue of the qtr as per your screen-shot. 

In new attribute, you can rename this sum monthly data and can use on screen to display as column.   


I hope it will help to you. 

 

Thanks 

UserImage.jpg
Naveen Theja

I want to add like this for every month.

2020-01-08 12-23-57
Jitender Gaur

Hi,

If you want to display SUM of the row then you can use the aggregate SUM method. it will total the records based on the filter and output.   Right click on column then it will show this all options.  



Please let me know if it works for you. 


Thanks

UserImage.jpg
Narendra Maheshwari

There are several approaches. The simplest is to add another aggregate that returns only the sum for each month. Otherwise, you can add another Total (Sum) column to your existing aggregate, but it will duplicate the same value for each row.

UserImage.jpg
Naveen Theja
Solution

The answer is to use structure list where we map data coming from aggregate and same structure we want to loop again.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.