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.
Solved! Go to Solution.
Kind Regards,
Gökberk Uzuntaş
📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!
🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |
Hello @GOPH,
REMOVEFILTERS means also "ALL" and that means "Returns all the rows in a table, or all the values in a column, ignoring any filters that might have been applied. This function is useful for clearing filters and creating calculations on all the rows in a table."
But ALLSELECTED means "
Removes context filters from columns and rows in the current query, while retaining all other context filters or explicit filters.
The ALLSELECTED function gets the context that represents all rows and columns in the query, while keeping explicit filters and contexts other than row and column filters. This function can be used to obtain visual totals in queries."
İf you have slicers and if you would like your values to change when you make a slicer selection. you need to use ALLSELECTED. I have a blog on that if you are interested you can follow the link: target=_blank target=_blank target=_blank target=_blankMastering Power BI DAX Functions: From Basic...
Kind Regards,
Gökberk Uzuntaş
📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!
🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |
ALLSELECTED removes all row and column context which is not what I want to happen, the figures should still be filtered based on year (cols) and name (rows), only the context of Cat. 2 should not be considered.
Kind Regards,
Gökberk Uzuntaş
📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!
🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |
That does work for the simple measure provided.
When putting it in a more nested stmt however, it does fail again...
Hello @GOPH,
İt is hard to say because ı don't know the relationship and some of the measure you used in your dax.
İf the below code doesn't work that would be good if you share dummy pbi file.
CALCULATE(
COUNTX(
FILTER(
SUMMARIZE(G_L_Entry,
G_L_Entry[G_L_Entry_Employee.Source No],
G_L_Entry[Year],
"Montant",
[_Indem. GL],
"Montant Op",
CALCULATE(
[_Indem. GL],
FILTER(ALLEXCEPT(G_L_Entry, G_L_Entry[AnneeBud],Q_Employee[Name], Q_Employee[Mat]), G_L_Entry[Cat. 2] = "Operational")
)
), [Montant Op] <= 0
),
G_L_Entry[G_L_Entry_Employee.Source No]
)
)
Kind Regards,
Gökberk Uzuntaş
📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!
🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
30 | |
13 | |
11 | |
9 | |
6 |