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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Alexandergikalo
Frequent Visitor

Best way to work with snapshot data

Hi, everyone.

I hope someone can help me with my poblem.

I have a table which have start date and end date rows (id, date_begin,date_end, amount).

I need to receive from it the amount and numbers of rows for a day or a few days (then I need to take notes that acted for at least one day for a period, but without duplicates).

The obvious way - to convert the start date and end date into one field and multiply the table entries. After the conversion, I got the opportunity to receive the amount and the number of rows per day and period ( count distinct), but there is the problem with amounts. Amount per day = sum(amount), but I dont't know how to get amount per period (the amounts are not unique, so I can't use sum distinct.

Please advise how to solve the problem.

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

@Alexandergikalo,

 

You may try to use SUMMARIZE Function and SUMX Function.

https://community.powerbi.com/t5/Desktop/Sum-of-values-in-a-measure-with-divide-measure/m-p/296768#M...

Community Support Team _ Sam Zha
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

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Alexandergikalo,

 

You may try to use SUMMARIZE Function and SUMX Function.

https://community.powerbi.com/t5/Desktop/Sum-of-values-in-a-measure-with-divide-measure/m-p/296768#M...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.