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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Finding a constant total of selected Market

I have a Dim Table with Markets and Products

I need to find the market share of a product within the slected Markets. 

 

In order to do that, I need to keep the total of the slecetd markets as constant irrespective of the the selected products within the seleceted market.

 

Generally it works. But when I unselect a produt where there is only ONE product in one of the market, the Market also get unslected and the total gets changed.

 

How can I keep the selecetion of the Market undisturbed irrespective of the slection of the product.

 

1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

Not totally clear on your scenario but you can use ALL or ALLSELECTED to get a total of the products within the market.  You can use that for your expression or in a variable on your way to your result.

 

All Markets = CALCULATE([Your Measure], ALL(Table[Product]))

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

1 REPLY 1
mahoneypat
Employee
Employee

Not totally clear on your scenario but you can use ALL or ALLSELECTED to get a total of the products within the market.  You can use that for your expression or in a variable on your way to your result.

 

All Markets = CALCULATE([Your Measure], ALL(Table[Product]))

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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