March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi all,
I am trying to find away to show the top stores that represnts a combined sales of 10B$ for example
Extra: would be to make this combines sales a whatIf parameter (that user can change from 1 , 2, ...10B)
Thank you in advanceT
Solved! Go to Solution.
Hi,
Share the link from where i can download your PBI file.
Hi,
This screenshot should say it all. I have applied a filter with the criteria of <=3000000000. These are the measures i used
Rank of Stores by total sales = if(HASONEVALUE(Stores[StoreName]),RANKX(ALL(Stores[StoreName]),[Total Sales]),BLANK())
Cumulative sales = SUMX(TOPN([Rank of Stores by total sales],CALCULATETABLE(VALUES(Stores[StoreName]),ALL(Stores[StoreName])),[Total Sales]),[Total Sales])
Hope this helps.
Try this
Measure =
VAR __sales =
ADDCOLUMNS(
ALL( Stores[StoreName] ),
"@sales", [Total Sales]
)
VAR __stors =
SELECTCOLUMNS(
FILTER(
__sales,
SUMX(
FILTER(
SELECTCOLUMNS( __sales, "@@sales", [@sales] ),
[@sales] < [@@sales]
),
[@@sales] ) > MAX( 'selections'[selection] )
),
"StoreName", Stores[StoreName]
)
RETURN
CALCULATE(
[Total Sales],
KEEPFILTERS( NOT Stores[StoreName] IN __stors )
)
Hi,
Share the link from where i can download your PBI file.
Thank you very much. I have put the file in OneDrive (I couldn't load it here idrectly)
https://1drv.ms/u/s!AibcI9O4iXjagYNCJ3-Qrsl1xRYa8A?e=bvBtnU
It is the standard Microsoft Contososales file
Try this
Measure =
VAR __sales =
ADDCOLUMNS(
ALL( Stores[StoreName] ),
"@sales", [Total Sales]
)
VAR __stors =
SELECTCOLUMNS(
FILTER(
__sales,
SUMX(
FILTER(
SELECTCOLUMNS( __sales, "@@sales", [@sales] ),
[@sales] < [@@sales]
),
[@@sales] ) > MAX( 'selections'[selection] )
),
"StoreName", Stores[StoreName]
)
RETURN
CALCULATE(
[Total Sales],
KEEPFILTERS( NOT Stores[StoreName] IN __stors )
)
Hi,
This screenshot should say it all. I have applied a filter with the criteria of <=3000000000. These are the measures i used
Rank of Stores by total sales = if(HASONEVALUE(Stores[StoreName]),RANKX(ALL(Stores[StoreName]),[Total Sales]),BLANK())
Cumulative sales = SUMX(TOPN([Rank of Stores by total sales],CALCULATETABLE(VALUES(Stores[StoreName]),ALL(Stores[StoreName])),[Total Sales]),[Total Sales])
Hope this helps.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |