Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi Good day,
Can anyone pls need your help on how can i change my calculated column into a measure (Column Highligthed in Yellow)
Thank you
Solved! Go to Solution.
Hi, @AllanBerces
Please try this, the data you gave does not have the used_AREA field, so there is no way to verify the accuracy of this formula.
SUM_NPT_by_Vessel/Wk_Measure =
VAR _vessel = SELECTEDVALUE(TRS[Vessel])
VAR _weekno = SELECTEDVALUE(TRS[WeekNo:])
VAR _used_AREA = SELECTEDVALUE(TRS[used_AREA])
VAR _type = SELECTEDVALUE(TRS[Type])
VAR _re =IF(_type = "Direct", CALCULATE(SUM(TRS[NPTHrs]),FILTER(ALL(TRS),TRS[Vessel] = _vessel && TRS[WeekNo:] = _weekno && TRS[used_AREA] = _used_AREA) ))
RETURN
_re
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi, @AllanBerces
Due to the privacy policy, it is not possible to directly open the link you share, you can directly copy the form without sensitive data and give the effect you expect to achieve.
Best Regards,
Yang
Community Support Team
Hi @Anonymous thank you for the reply, Basically I wan to change my calculated column into a Measure. my table as below.
DESIRED OUT-PUT
Hi, @AllanBerces
Based on the information you gave, the first formula seems to have the used_AREA field, but the raw data does not. For more information on how the second formula is converted to MEASURE, you can refer to dax below
The second:
SUM_NPTCODE_Measure =
VAR _vessel = SELECTEDVALUE(TRS[Vessel])
VAR _weekno = SELECTEDVALUE(TRS[WeekNo:])
VAR _nptCode = SELECTEDVALUE(TRS[NPT Code])
VAR _type = SELECTEDVALUE(TRS[Type])
VAR _re =IF(_nptCode<>BLANK(), CALCULATE(SUM(TRS[NPTHrs]),FILTER(ALL(TRS),TRS[Vessel] = _vessel && TRS[WeekNo:] = _weekno && TRS[NPT Code] = _nptCode && TRS[Type] = _type) ))
RETURN
_re
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi @Anonymous thank you very much for the help how can i change to measure my column
Hi, @AllanBerces
Please try this, the data you gave does not have the used_AREA field, so there is no way to verify the accuracy of this formula.
SUM_NPT_by_Vessel/Wk_Measure =
VAR _vessel = SELECTEDVALUE(TRS[Vessel])
VAR _weekno = SELECTEDVALUE(TRS[WeekNo:])
VAR _used_AREA = SELECTEDVALUE(TRS[used_AREA])
VAR _type = SELECTEDVALUE(TRS[Type])
VAR _re =IF(_type = "Direct", CALCULATE(SUM(TRS[NPTHrs]),FILTER(ALL(TRS),TRS[Vessel] = _vessel && TRS[WeekNo:] = _weekno && TRS[used_AREA] = _used_AREA) ))
RETURN
_re
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi @Anonymous thank you very much working perfetly
Hi,
Below are my dax for my calculated Column
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |