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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
AsmaBenhassine9
Frequent Visitor

Can not Calcul TOTALYTD per product

Hello,

 

I want to use the TOTALYTD function to calculate the fixed accumulation of the quantity sold by product.
The problem is that the function does not work when I want to display it by product but I have the right total as shown in the image below.

 

AsmaBenhassine9_0-1628071636788.gif

when i use this formula  "    Volume YTD =

CALCULATE([Quantité Vendue], Calendrier[Mois de facturation]<=FILTERS(Calendrier[Mois de facturation])) " =>
i have the right values  and it works by product , but when i use totalytd it doesnt work ?!
Volume YTD test =
TOTALYTD([Quantité Vendue ],Calendrier[Date de facturation])
 
Any help? !
 
Thank you,
 
 
 

 

 

3 REPLIES 3
AsmaBenhassine9
Frequent Visitor

Hello ,

Any help please ? 

amitchandak
Super User
Super User

@AsmaBenhassine9 ,TOTALYTD will work well as long some year value is in context using slicer or part of the visual.

 

Date/calendar table should be marked as date table 

 

Why Time Intelligence Fails - Power bi 5 Savior Steps for TI: https://youtu.be/OBf0rjpp5Hw

 

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

hello @amitchandak ,

 

Thanks for your return,

The problem is that the measure I created volume YTD TEST works in total but when I put it according to the product it will be empty.

 

AsmaBenhassine9_0-1628079490157.png

 

the formula => TOTALYTD([Quantité Vendue ],Calendrier[Date de facturation])

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.