Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I have two tables which have a relationship using weeks columns. RSZA0003_available Hour is my machine weekly available hours
In Sizing_Machine table, i have a measure name 'Runtime" now i would like to see the efficency of my machine over the past few weeks. I've tried to use the following code to calculate. But for some reason when i use related function, power bi didnt recognise the column.
Hi @Hongmingk
I would like to apologize for the belated reply.
Have you solved your problem? If not, here is my suggestion: You could try changing the RELATED formula to a SELECTEDVALUE formula.
For more details, you can read related document link: SELECTEDVALUE function - DAX | Microsoft Learn
Since I can't see your screenshot clearly, I apologize for not being able to reproduce your formula. If your problem persists, you can refer to the following link to provide example data and your expected results: How to provide sample data in the Power BI Forum - Microsoft Fabric Community. We can better understand the problem and help you. Please remove any sensitive data in advance.
Best Regards,
Community Support Team _Yuliax
hello @Hongmingk
to use related, you need an iterator such as sumx, max, minx, filter, addcolumns , .... .
assuming that the total available hour is additive across dimensions, i guess you can simply use :
let me know if you need any help
best regards,
Hi,
Thanks for the help and really appericated. But unfortunately the answer is not im looking for. I'm sorry for not being clear on my issue. Let me elobrate.
The picture below show the RSZA0003_Avaiable Hour'
If i use sum('RSZA0003_Avaiable Hour'[Total available Hour]). The result will be wrong. As you can see in the picture below.
By right, if i want to calculate the efficency, i would need to use runtime / total available hour. Hence i should have the result as below
Week 1 : 0.565
Week 2 : 0.589
Week 3 : 0.528
As you can see in the picture below, the "Total avaiable hour" is straight away input into the table. This two table RSZA_avaiable hour and sizing machine have a relationship using weeks.
Thanks in advanced and sorry for the trouble.
Hi,
To make RELATED work in a measure you need to use some table manipulating function E.g.
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |