Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello !
Here is my problem :
My source in Powerpivot named DATA
MODELE | QTE |
LA DEFENSE PEUGEOT 208 | 12 |
REPUBLIQUE PEUGEOT 5008 | 18 |
BASTILLE PEUGEOT 308 | 16 |
GARE DE L'EST PEUGEOT 508 | 1 |
LA DEFENSE RENAULT SCENIC | 10 |
REPUBLIQUE RENAULT CLIO | 4 |
BASTILLE RENAULT KANGOO | 8 |
GARE DE L'EST RENAULT TWINGO | 13 |
I want to have these result :
MARQUE | NOMBRE |
PEUGEOT | 47 |
RENAULT | 35 |
I tried with a Powerpivot Inversed Table by creating these table named Marque in Powerpivot
MARQUE |
PEUGEOT |
RENAULT |
And trie the Dax Function who doesn't work :
Evaluate(
AddColumns(
Marque,
"Nombre",Calculate(sum(Data[QTE]),Find([MARQUE],DATA[MODELE],,0))
)
)
Is there another way to have my result or what is the Dax formula to have it
Thank you for your help.
Solved! Go to Solution.
Create a new table called models that has the modele column and a new column called brand. The modele column must be unique values. Join this new table to the data table using the common modele column
create a table visual using the brand column from the models table then drag the qte column from the data table.
Create a new table called models that has the modele column and a new column called brand. The modele column must be unique values. Join this new table to the data table using the common modele column
create a table visual using the brand column from the models table then drag the qte column from the data table.
User | Count |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |