Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
21 | |
21 | |
20 | |
13 | |
12 |
User | Count |
---|---|
42 | |
28 | |
25 | |
23 | |
22 |