March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello everyone,
I have one column in my Table with integer values, I want report in a pie chart values > 0 and values == 0, and its percentage, but I dont want to create a additional column with values "YES":: >0 and "NOT":: == 0 for it. Is it possible? I'm newbie on dax (and I think to keep only essential information on Tables, maybe I'm wrong).
Solved! Go to Solution.
Hi @Bidu
you may create a disconnected single column, two rows table. Inset table manually, rename it like "CetegoryFilter, rename the column "Category" and inter "Yes", "No" in the first two rows.
place CategoryFilter[Category] in the pie chart along with the following measure
IF (
SELECTEDVALUE ( CategoryFilter[Category] ) = "Yes",
COUNTROWS (
FILTER (
'Table',
'Table'[Value] = 0
)
),
COUNTROWS (
FILTER (
'Table',
'Table'[Value] > 0
)
)
)
For create the Table and insert the two rows, do I this on Power Query?
From home menu in power bi click on "inset data". The table will be automatically created in power query
Thank you for attention
@tamerj1 nice! Thanks.
Now I wanna know about your experience, which solution is more elegant to make this? Am I right about keep only essential information on Table. My intension is make a clear solution, without being a prolixic model
Let's say your data is a couple of million rows. If you add a column then you're actually adding 2 million cells to your data model. The other solution requires adding 2 cells only. I don't think it is a hard question to answer.
Hi @Bidu
you may create a disconnected single column, two rows table. Inset table manually, rename it like "CetegoryFilter, rename the column "Category" and inter "Yes", "No" in the first two rows.
place CategoryFilter[Category] in the pie chart along with the following measure
IF (
SELECTEDVALUE ( CategoryFilter[Category] ) = "Yes",
COUNTROWS (
FILTER (
'Table',
'Table'[Value] = 0
)
),
COUNTROWS (
FILTER (
'Table',
'Table'[Value] > 0
)
)
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
41 | |
32 | |
29 | |
12 | |
12 |