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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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