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
LotteLaugesen
Helper V
Helper V

How to calculate/show rowtotal

Hi
How do I get a Total for Actual in this table? 

LotteLaugesen_1-1611827068803.png

Actual =
VAR startDate_ = SELECTEDVALUE( 'Products'[Start date])
VAR endDate_ = EDATE ( startDate_, 4 )

VAR Act =
CALCULATE ( SUM ( Sales[Kilos] ), Sales[Invoice date] >= startDate_ && Sales[Invoice date] <= endDate_ ) / 1000

RETURN Act

Best regards
Lotte

5 REPLIES 5
amitchandak
Super User
Super User

@LotteLaugesen , I am assuming this measure and data type is number/decimal

 

If there no issue try return like

 

return

sumx(summarize(Table, Table[number], Table[Start Date],"_1"), [Act])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Yes, it is decimal number 🙂

I'm not sure that I understand your solution.

I need both values for Actual per Number and the total for Actual.

@LotteLaugesen ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi
I have added a new file where the calculation is visible 😉
https://1drv.ms/u/s!AoecG91dlcEedQ5858sIN8ZRh9c?e=0ag264 
Hope you can help me 🙂


Best regards
Lotte


Hi

I have added a link to the pbix file.
https://1drv.ms/u/s!AoecG91dlcEedFWCA6Fii_s-q9c 

 

I hope you can help me 🙂

Best regards

Lotte

 

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.