Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi folks,
I am looking for any hint for this unusual scenario. I have Products (dimension) and Sales (fact) tables that are related through 1-many relationship. If I use ALL(Sales) in my measure, it removes filters not only from Sales, but from the Products table too. How do I remove filters for the Sales table only?
Solved! Go to Solution.
Hi
@parry2k , thanks for your concern about the problem and i want to offer some more information for user to refer to.
hello @gvg , you can refer to the following solution.
Sample data
Sales
Product
Calendar table
Relationship
Create a measure
Sum_greencolor =
IF (
SUM ( Sales[Amount] ) <> BLANK (),
CALCULATE (
SUM ( Sales[Amount] ),
ALLEXCEPT ( Sales, Products[Title], 'Calendar'[Week] ),
Sales[Color] = "green"
)
)
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@gvg I'm still not able to understand the problem you are trying to solve, you just gave the structure of the tables and the output, but not sure what problem we are solving here.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
My problem is that I have to work with unusual data tables were some dimensions are in the fact tables. This is a simplified example of my tables:
Products[ID] | Products[Title] |
Sales[Date] | Sales[Color] | Sales[Amount] |
I need to produce the report like this:
Products[Title] | Week No | Sales[Color] | Sales[Amount] | Sales[Color]=green |
abc | 12 | Red | 10000 | 5000 |
cde | 12 | Black | 4000 | 5000 |
Hi
@parry2k , thanks for your concern about the problem and i want to offer some more information for user to refer to.
hello @gvg , you can refer to the following solution.
Sample data
Sales
Product
Calendar table
Relationship
Create a measure
Sum_greencolor =
IF (
SUM ( Sales[Amount] ) <> BLANK (),
CALCULATE (
SUM ( Sales[Amount] ),
ALLEXCEPT ( Sales, Products[Title], 'Calendar'[Week] ),
Sales[Color] = "green"
)
)
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@gvg what are you trying to achieve? What is your end goal?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
User | Count |
---|---|
84 | |
77 | |
75 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
45 | |
43 |