Forum Discussion
DAX - Max Month Store wise Calculations
With help concatenatex, you should able to group text. The number you can get using sum.
https://docs.microsoft.com/en-us/dax/concatenatex-function-dax
amitchandak Thanks for respond,
when i select month in slicer, the store type is different from other months, so that reason i unble to use concatenate.
i am usinig below formula ...
VAR monthselection = SELECTEDVALUE(Sheet1[Month N])
VAR StoreValue = SUMX(FILTER(ALL(Sheet1), Sheet1[Month N]= monthselection && Sheet1[Store type] = "Retain" && Sheet1[Store] = "T" || Sheet1[Store] = "T" ), Sheet1[Sale])
Return
StoreValue
here i am unble to pass stores dynamically.
Please hep on this , thanks in advance..
Regards
Venu
- amitchandak6 years ago
Super User
Same issue as pointed above numbers not matching.
https://www.dropbox.com/s/pq5ighswql7pu9w/concatExample.pbix?dl=0
- amitchandak6 years ago
Super User
In case you want all the store names of a type. You can choose All(table[Month]) to remove the month filter.
- amitchandak6 years ago
Super User
I tried, This does give me C L N T with March filter for R
CALCULATE(CONCATENATEX(FILTER(DISTINCT(concatData),concatData[Store type]="R"),(concatData[Store])," "))