Forum Discussion
Remove older year
- 2 years ago
Hello AmiraBedh ,
I've found a solution after multiple tries and fails.
Translate calculated column into measure
Thanks for your time.
Try the following :
VAR varPremiereAnne = MIN(CalendrierAnnuel[Année fiscale])
RETURN
CALCULATE(
SUM(tblEntrepriseDonnees[sglCoutCapitauxPropres]),
FILTER(
CalendrierAnnuel,
CalendrierAnnuel[Année fiscale] > varPremiereAnne
),
USERELATIONSHIP(tblEntreprise[KEntreprise], tblEntrepriseDonnees[FKEntreprise])
)
Hello AmiraBedh ,
Thanks for your help.
I've try your solution. The result gives an empty chart, unfortunately. We must be close but I dont where's the problem. I would probably done it like you.
But I can have a sum in a card
The result is the same when I remove the USERELATIONSHIP part.
For the fun of it, I remove varPremiereAnne for 5 or 2015. Then I the chart is full.
CALCULATE(
SUM(tblEntrepriseDonnees[sglCoutCapitauxPropres]),
FILTER(
CalendrierAnnuel,
CalendrierAnnuel[Année fiscale] > 5
),
USERELATIONSHIP(tblEntreprise[KEntreprise], tblEntrepriseDonnees[FKEntreprise])
)
- AmiraBedh2 years ago
Super User
Can you provide some data ? And your model ?
- Pier22 years ago
Resolver I
Hello AmiraBedh ,
The model is the folowing:For a sample of data by table:
tblEntrepriseKEntreprise txtEntrepriseNom 1 Barron's Bar 2 Joy Books Club Inc 3 Cats arrr Great Ltd
tblEntrepriseDonneesID FKEntreprise intAnnee sglCoutCapitauxPropres 1 1 2014 2 1 2015 0,02 3 1 2016 0,05 4 1 2017 0,09 5 2 2015 6 2 2016 0,09 7 2 2017 0,00 8 2 2018 0,08
As you can see, in row #1 and #5, there's no value in the column sglCoutCapitauxPropres. And I want to hide them from the graph. But when I see a zero, like line #7, I want to see it.
CalendrierAnnuelAnnée fiscale 2013 2014 2015 2016 2017 2018 2019
Hope informations are clear.- Pier22 years ago
Resolver I
Hello AmiraBedh ,
I've found a solution after multiple tries and fails.
Translate calculated column into measure
Thanks for your time.