Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 216047

dax search( two fields in expression

$
0
0

 

Hello !

 

Here is my problem :

 

My source in Powerpivot named DATA

 

MODELEQTE
LA DEFENSE PEUGEOT 20812
REPUBLIQUE PEUGEOT 500818
BASTILLE PEUGEOT 30816
GARE DE L'EST PEUGEOT 5081
LA DEFENSE RENAULT SCENIC10
REPUBLIQUE RENAULT CLIO4
BASTILLE RENAULT KANGOO8
GARE DE L'EST RENAULT TWINGO13

 

I want to have these result :

 

MARQUENOMBRE
PEUGEOT47
RENAULT35

 

 

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. 


Viewing all articles
Browse latest Browse all 216047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>