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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
momodj20
Helper II
Helper II

Calcolo totale righe su colonne calcolate Errato

Buon pomeriggio a tutti,

ho dei valori di esempio su una tabella .

 

Qualcuno mi sa dire perchè non riesce a calcolare il totale corretto?

Calcola solo la somma relativa all'anno 2020.

I valori sono calcolati fino a giugno sono i valori dell'anno corrente oltre giugno prende dei valori da un'altra colonna

della colonna anno 2019.

La formula 

Calcolo budget = if((SUM(View_vendite_AC_COMP_19[VAL_VE_AC]) * SUM(PERC_TAB[PERC])/100 + SUM(View_vendite_AC_COMP_19[VAL_VE_AC]))=0, SUM(View_VENDITE_AP_COMP_18[VAL_VE_AP]) * SUM(PERC_TAB[PERC])/100+SUM(View_VENDITE_AP_COMP_18[VAL_VE_AP]), SUM(View_vendite_AC_COMP_19[VAL_VE_AC]) * SUM(PERC_TAB[PERC])/100 + SUM(View_vendite_AC_COMP_19[VAL_VE_AC]))

 

 

 

 

 
2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @momodj20 

Do you need to calculate the total values for the current year?

if so, you can use Totalytd dax function.

You can create a measure like

totalthisyear==TOTALYTD(SUM(InternetSales_USD[SalesAmount_USD]),DateTime[DateKey]) 

Then you can add year column and the measure above on a table visual.

 

Best Regards

Maggie

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

 

momodj20
Helper II
Helper II

Immagine.png

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.