Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
lulubrinki
Regular Visitor

Problems with Measure: Categorize outlets based on count of their sent messages

Hi all,


I am currently trying to categorise outlets based on their sent messages in a calendar week. 

 

I created the following measure:

Screenshot 2023-02-14 at 15.29.03.png

 

When I now create a table with all OutletId's and their OutletActivity it does exactly what it should.
 I can select a calendar week and for each week it shows me the category of each outlet:

Screenshot 2023-02-14 at 15.27.48.png

I now want to get the number of High active / Medium active and Low active Outlets.
Example:

 

High active Outlets1000
Medium active Outlets999
Low active Outlets100

 

When I now change OutletId to Count or better Count(distinct) it does not show the threee categories anymore.
It only shows High active Outlets.

lulubrinki_0-1676387064186.png

 

Screenshot 2023-02-14 at 15.29.30.png

Can anybody support me with my problem?
Thanks in advance!

 

2 REPLIES 2
lulubrinki
Regular Visitor

Hi _Charlotte,

 

I guess your answer does not help me in what I want to achieve.
My aim is to get the number of high active outlets, medium active outlets or low active outlets.

High active outlets: Outlets which sent more (or equal) than 100 messages (>=100)
Medium active outlets: Outlets which sent less than 100 but more than 30 messages (<100 and >30)
Low active outlets: Outlets which sent less (or equal) than 30 messages (<=30)

I have a fact table for all messages and I have an outlet dimension where all outlets are stored.

lulubrinki_0-1676467793335.png


Thanks a lot for your help!

Best,
Luisa

v-zhangti
Community Support
Community Support

Hi, @lulubrinki 

 

You can try the following methods.
Measure:

Count Measure = 
Var _table=SUMMARIZE(ALL('Table'),'Table'[OutletId],"Status",[OutletActivity])
Var _a = [OutletActivity]
return 
COUNTX(FILTER(_table,[Status]=_a),[Status])

vzhangti_0-1676445391074.png

If you want three rows, High active/Medium active and Low active outlets, you have to be columns.

New Table:

Table 2 = SUMMARIZE('Table',[OutletId],"Status",[OutletActivity],"Count",[Count Measure])

vzhangti_1-1676445537102.png

Result:

vzhangti_2-1676445563341.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.