I need a basic pie chart where the total should be constant number, say, 2000. and there is a table that has item lines. I need to show the basic calculation on pie cart, as to from total 2000, how many items lines we have.
example-In the table there are 1700 lines, so how much is remaining. (but in a pie chart)
Solved! Go to Solution.
Hi,
I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
I suggest having a STATUS table like below.
I hope the below can provide some ideas on how to create a solution for your datamodel.
Expected result measure: =
VAR _countrow =
COUNTROWS ( Data )
RETURN
SWITCH (
SELECTEDVALUE ( 'Status'[Status] ),
"All count", _countrow,
"Remaining count upto 500", 500 - _countrow
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
I suggest having a STATUS table like below.
I hope the below can provide some ideas on how to create a solution for your datamodel.
Expected result measure: =
VAR _countrow =
COUNTROWS ( Data )
RETURN
SWITCH (
SELECTEDVALUE ( 'Status'[Status] ),
"All count", _countrow,
"Remaining count upto 500", 500 - _countrow
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
214 | |
54 | |
46 | |
41 | |
41 |
User | Count |
---|---|
278 | |
210 | |
73 | |
73 | |
65 |