Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Created a Measure but Cannot Use Measure in Any Sort of Chart

Hi all,

 

I have a measure in my PBI report that gives me the last crew per event_idx. When I put the measure in a table it provides the correct results as shown below...

 

CollinSharp1_0-1641498894652.png

The measure for the last crew field is: 

CollinSharp1_1-1641498970478.png

 

I have related the crew actions table and jobs table: 

CollinSharp1_2-1641499030929.png

 

So... Is there anyway I can use that last crew measure as an axis in a stacked barchart to show the amount of jobs that have "failed" per crew? 

 

The table shows all instances of this, but I would like a way to quantify this per crew.

 

Any help would be greatly appreciated.

 

Thanks!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

As @ALLUREAN  mentioned, measures could not act as X-axis.

 

In your case, I have created a data sample:

Eyelyn9_1-1641886241579.png

 

I'd suggest you create a new table with a column that contains all crew names, it will be used for X-axis.

New Table = VALUES('Crew Actions'[UNITNAME]) 

Then create a count measure:

Fail Count = CALCULATE(COUNTROWS('JOBS'),FILTER('JOBS',[Difference]>=30 && [Last Crew]=MAX('New Table'[UNITNAME])))

Output:

Eyelyn9_0-1641886091957.png

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @Anonymous ,

 

As @ALLUREAN  mentioned, measures could not act as X-axis.

 

In your case, I have created a data sample:

Eyelyn9_1-1641886241579.png

 

I'd suggest you create a new table with a column that contains all crew names, it will be used for X-axis.

New Table = VALUES('Crew Actions'[UNITNAME]) 

Then create a count measure:

Fail Count = CALCULATE(COUNTROWS('JOBS'),FILTER('JOBS',[Difference]>=30 && [Last Crew]=MAX('New Table'[UNITNAME])))

Output:

Eyelyn9_0-1641886091957.png

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

smpa01
Super User
Super User

@Anonymous  how do you calculate  - the amount of jobs that have "failed" per crew?

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

Essentially the pass/fail column is looking at restoration time vs estimated restoration time. If there is a difference of >=30 mins, the job failed and we need to know the count of jobs that are failing per crew.

Anonymous
Not applicable

I have a calculated column that is a pass/fail identifier based on a few equations. I want to use the last crew measure as the x axis and have the pass/fail identifier as my y axis. 

@Anonymous any chance you can provide a small sample pbix?

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

I am connected to dataflows. Would that have any effect?

@Anonymous  I guess not.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
ALLUREAN
Solution Sage
Solution Sage

Hi, @Anonymous 

You can't use a measure in X-axis, but you can try replicate this measure as a calculate column if possible with your data and the use it in X-axis,




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors