Forum Discussion
learner03
Post Partisan
3 years agoPie Chart with COUNT
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 m...
- 3 years ago
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 )
Jihwan_Kim
Super User
3 years agoHi,
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
)