Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi!
I am looking to "count" how many customer's are considered to have "Increasing" sales and how many are considered to be "Decreasing". I would like to add the result to a Card visualization.
Here is my measure:
I'm confused on how to combine "count" with a measure (or if I need to go about finding the answer in a different way).
Thanks for the help!
Solved! Go to Solution.
@Anonymous You can't do something like:
Count of Increasing =
COUNTROWS(
FILTER(
SUMMARIZE('Customers',[Customer],"__Measure",[Increasing or Decreasing]),
[__Measure] = "Increasing"
)
)
@Anonymous This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149
The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.
Unfortunately, I don't believe this is what I am looking for.
@Anonymous You can't do something like:
Count of Increasing =
COUNTROWS(
FILTER(
SUMMARIZE('Customers',[Customer],"__Measure",[Increasing or Decreasing]),
[__Measure] = "Increasing"
)
)
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
7 | |
6 |