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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Migasuke
Super User
Super User

Adding comment with DEFINE

Hello everyone,

I am playing with new DAX query view in PBI Desktop. I am just wondering - is it somehow possible to define a measure and include the comment as well? Probably using some special character? Right now comment is obviously exluded.

To be more specific, I want to keep the comment in the measure:

Migasuke_0-1702761722495.png

 



If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Migasuke , I was not able to give at end. But in middle I was able to give

DEFINE
    MEASURE 'Measure'[Net1]  = [Gross]  /*net */
    -[Discount]    
 
Shown as
Net1 = [Gross]  /*net */
    -[Discount]

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Migasuke , I was not able to give at end. But in middle I was able to give

DEFINE
    MEASURE 'Measure'[Net1]  = [Gross]  /*net */
    -[Discount]    
 
Shown as
Net1 = [Gross]  /*net */
    -[Discount]

Hi @amitchandak ,

Great solution, thank you for it!
Migasuke.



If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.