Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
how to show null when attribute is placed as single in table and to show values when placed in combination of other attributes in table.
for example: we have 3 columns in table stating product category, company and brand
so when product category or company is placed in matrix table it should be shown as null, and when placed in combination with brand(drilldown way) it should display values/data.
trying to create DAX using isfiltred function but not helping.
Thanks in advance.
Hi @Anonymous ,
Is this the result you expect?
Try to create a measure like below:
Measure = IF(ISINSCOPE('Table'[Brand]),SUM('Table'[value]))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you, but this not what i am expecting, measure should not be blank for prod_category/company.
if prod-category/company slected individually then it show blank, in hierarchial struture it should populate the values.
Hi @Anonymous ,
Try this measure:
Measure 2 = IF(ISINSCOPE('Table'[product category]),IF(ISINSCOPE('Table'[company ]),SUM('Table'[Value]),BLANK()),BLANK())
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
values for company, category are not correct at higher level i mean when selected as single attribute in table, but when i drill down with brand then values are correct at that level, so aggregated values are not correct, which should be avioded , and we are using this power bI dataset as source to different dasbaords unlike sql server or azure etc.., so to aviod developers use wrong info we need to hide data at upper level.
In this case shouldn't a simple,
Proud to be a Super User!
how about if i have to drilldown by company and brand?
If the data is correct only with those two drilldowns in place then,
IF(and(ISFILTERED('Matrix example'[Brand]),ISFILTERED('Matrix example'[Company])),SUM('Matrix example'[Value]),"")
Should do the trick.
Then to get this to work in a matrix you can use Brand as a column and Company as a row:
Proud to be a Super User!
Thanks @ValtteriN i tired this, but unfortunately my client wants it to have both in columns with filtering in both directions..
thank you so much..
thanks,
Geetha.
can you share pbix with me, i tired similar method but its not working for me
type mistake, power BI dataset used as datasource like sql,azure etc..
Hi,
I am not sure if I understood your issues, but from what I understood you want to show nulls on "1st level" of a matrix and when you drill down you would display values?
Like you suggested this can be achieved with ISFILTERED. Here is a fomula example:
The key here is to use multiple ISFILTERED functions with true and false conditions.
Hopefully this helps to solve your issue and if it does consider accepting this as a solution!
Proud to be a Super User!
this is what i am expecting..
hope i am clear.
Okay, I think I got it now. Unfortunately, according to my understanding a single table and level 1 of a matrix operate the same way so it is not possible to have one showing nulls and the other showing values with the same formula. Maybe we should try a different approach? What is reason behind this measure so why do you need it?
Proud to be a Super User!
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
25 | |
18 | |
18 | |
17 | |
16 |
User | Count |
---|---|
27 | |
26 | |
19 | |
15 | |
14 |