Forum Discussion
Sam_2020
6 years agoHelper I
Measure
How to write measure of the column header with Sales > 60 and the total value is 100?
| Product | Sales | Sales > 60 |
| A | 100 | 100 |
| B | 30 | |
| C | 50 | |
| Total | 180 | 100 |
for the second scenario,
please try this
Measure = VAR _value=SELECTEDVALUE('Table'[SALES]) return IF(_value>100,_value,SUMX(FILTER('Table','Table'[SALES]>60),'Table'[SALES]))
11 Replies
- kkandaResolver II
Hello Nemanja, thanks for the response. I am not looking for the MAX value. What I am looking for is creation of a measure by the simple clicking on any bar - that becomes my selected category. If I get that category name as a new measure, I want to create another chart detailing the sales trend of that category over a period of time. Maybe this is wishful thinking - the experts can give their opinion.
kkanda
- Sam_2020Helper I
Thanks Namaja for your reply.
If I have other product which are >60, then how should i write the measure?
Product Sales Sales > 60 A 100 100 B 30 C 50 D 75 75 E 90 90 Total 345 265