Forum Discussion
joaopalhares
5 years agoFrequent Visitor
Calculating Stores by Transaction Range
Hello, I would like to ask for help on the following problem: I have an excel database which have the total number of transactions per store and date. Then, i summarize the total number o...
- 5 years ago
add a new column in table of sheet1
and, create a relationship between the new column to dimTable
then change the measure code of StoreCount to
Jihwan_Kim
5 years agoSuper User
More than 100 : =
VAR _newtable =
ADDCOLUMNS ( VALUES ( Sheet1[Store] ), "@transactions", [Total Transactions] )
RETURN
COUNTROWS ( FILTER ( _newtable, [@transactions] > 100 ) )
Equal or less than 100 : =
VAR _newtable =
ADDCOLUMNS ( VALUES ( Sheet1[Store] ), "@transactions", [Total Transactions] )
RETURN
COUNTROWS ( FILTER ( _newtable, [@transactions] <= 100 ) )
joaopalhares
5 years agoFrequent Visitor
Hello JihwanKim . Thank you for the support given.
It worked really nice. I've tried both ways, the one provided by you and wdx223_Daniel.
There is one other thing i would like your help to evaluate if it is possible:
Is it possible to, when i select (press) the number of stores count to filter the other table?
For instance, when i click the number 1 (more than 100) to filter the other table showing only store B.
Your help would be awesome. Thanks in advance.
Updated files on the link below.