Forum Discussion
Output Status as Column
- 7 years ago
hi, Anonymous
You may try this way:
Step1:
Create a Cstatus Dim table(Do not create a relationship with basic table).
Step2:
Then use this formula add a new measure
Measure 2 = IF(SELECTEDVALUE(Dim[Cstatus])=[Measure],COUNTA('Table'[Name]))Step3:
Drag Cstatus field from Dim table and measure 2 into a pie chart.
Result:
here is new sample pbix file, please try it.
Best Regards,
Lin
- 7 years ago
hi, Anonymous
If so, try these two measure:
Measure = CALCULATE(IF ( DIVIDE ( CALCULATE ( SUM ( 'Table'[Billing Hours] ) ), CALCULATE ( SUM ( 'Table'[HoursForWeek] ) ) ) < 1, "PB", "Billable" ),FILTER(ALLSELECTED('Table'),'Table'[Name]=SELECTEDVALUE('Table'[Name])))Measure 2 = VAR _table=SUMMARIZE('Table','Table'[Name],"_discount",[Measure]) var _table2=FILTER(GENERATE(_table,Dim),[Cstatus]=[_discount]) return COUNTAX(_table2,[Name])If you still have the problem, please share your sample pbix file.
Best Regards,
Lin
hi, Anonymous
If so, try these two measure:
Measure =
CALCULATE(IF (
DIVIDE (
CALCULATE ( SUM ( 'Table'[Billing Hours] ) ),
CALCULATE ( SUM ( 'Table'[HoursForWeek] ) )
) < 1,
"PB",
"Billable"
),FILTER(ALLSELECTED('Table'),'Table'[Name]=SELECTEDVALUE('Table'[Name])))
Measure 2 = VAR _table=SUMMARIZE('Table','Table'[Name],"_discount",[Measure])
var _table2=FILTER(GENERATE(_table,Dim),[Cstatus]=[_discount]) return
COUNTAX(_table2,[Name])
If you still have the problem, please share your sample pbix file.
Best Regards,
Lin
Dear Power Bi Community,
Greetings to all and hope you are safe during this pandemic!
I'm new to this community and I have just completed the registration.
So to start with, I'm unable to produce a simple calculation in power bi, which is way easier to calculate in excel i.e., a specific field rate within the column range.
So here is the image of what I need, the left side is the raw table in Power Bi, the summary is in the centre table for illustration and the result needed is in the right side i.e., Closure % (closed divided by total cases of that account).
Sorry if I'm asking a too-simple question since I'm new to Power BI and still on self-learning 🙂
Appreciate your kind assistance in this matter.
Regards,
Musa