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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
seabrew
Helper II
Helper II

Create a measure that SUMs based on two other fields in the same row

 

I am trying to do this for a median value against the aggregated values of two columns in the same row. Can someone help me with the DAX? I got it to work with SUMMARIZE and CALCULATETABLE, but I need a scalar value in order to work in the Pivot Table / Matrix. I then want to do a MEDIAN function against the new measure. 

 

Sample data is here. I want to group by Client and AsOfDate to get the Client SUM for the AsOfDate and return that value to each account belonging to the client on the AsOfDate. 

 

AccountClientValueAsOfDateNew Measure - Client SUM Value
123A105/31/201725
234A155/31/201725
658B205/31/201720
98C305/31/201730
123A204/30/201785
234A654/30/201785
658B674/30/201767
98C324/30/201732
1 REPLY 1
v-huizhn-msft
Employee
Employee

Hi @seabrew,

I am still confusing your requirement, could you please list an example to display what you want? How to display each account belonging to the client on the AsOfDate? 

>> I then want to do a MEDIAN function against the new measure. 

You can create a measure using the formula: median=MEDIAN(Table[NewMeasure]). Then show it in a card visual to check if it works fine. For MEDIAN function, please review the blog.

Best Regards,
Angelia

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.