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
sb48846
Frequent Visitor

Need To help to create a measure on top of Measures

Hi Team,

 

I need your help on creating measure on top of measure. Please see below date where following fields are measures.

 

 

sb48846_1-1721925710838.png 

Mesures List:

Bid Price (Formula: =CALCULATE(SUM('Lowest Price Option'[Daily Price]))

Qty Bid  (Formula: =CALCULATE(SUM('Lowest Price Option'[Qunatity Bid]))

Total Qty bid by all Suppliers (Formula: = CALCULATE(SUM(Bid[Demand]), ALLSELECTED(Bid)))

QtySplit% by Mkt&Supplier  (Formula: = Divide([Qty Bid],[Total Qty bid by all Suppliers])

Qty Weig.price by Mkt&Supplier (Formula : = [Bid Price]*[QtySplit% by Mkt&Supplier]

 

Trying to create new measure called "NewMeasure(Group by BidYear,Market&Date)" on top of measure "Qty Weig.price by Mkt&Supplier" and this new measure should group the totals based on Bid Year, Market, Price Date& Product.

 

I need expected result in column "L"

 

Thanks,

Suman.

1 ACCEPTED SOLUTION
MalkhazTsagarel
Regular Visitor

This will give the result:
Total Qty bid
by All Suppliers =
CALCULATE(
   [Qty Bid],ALLSELECTED('Sample Data'[Supplier],'Sample Data'[Daily Bid Price],'Sample Data'[Location]))
MalkhazTsagarel_0-1722082488590.png

If it works, please make it as solution

View solution in original post

4 REPLIES 4
MalkhazTsagarel
Regular Visitor

@sb48846  If it worked, please mark it as a solution. Thanks!

MalkhazTsagarel
Regular Visitor

This will give the result:
Total Qty bid
by All Suppliers =
CALCULATE(
   [Qty Bid],ALLSELECTED('Sample Data'[Supplier],'Sample Data'[Daily Bid Price],'Sample Data'[Location]))
MalkhazTsagarel_0-1722082488590.png

If it works, please make it as solution

MalkhazTsagarel
Regular Visitor

Hey, 
Try this dax code for a new measure:
NewMeasure =
SUMX(
SUMMARIZE(
'Bid',
'Bid'[Bid Year],
'Bid'[Market],
'Bid'[Price Date],
'Bid'[Product],
"Qty Weig.price by Mkt&Supplier", [Qty Weig.price by Mkt&Supplier]
),
[Qty Weig.price by Mkt&Supplier]
)

I use Summarize to create a table grouped by the specified columns  and then to sum the 'Qty Weig.price by Mkt&Supplier' for each group using Sumx.

Hi @MalkhazTsagarel 

 

I have tried your suggestion on "Total Qty bid by All Suppliers" measure first. It is not sumarizing the Qty Bid as expected. Please get the  Pbix file from below link.

https://drive.google.com/file/d/1_-qKhnDMCtkdLT869axnLTOw9m4Wo645/view?usp=drive_link

 

See the below output which i am getting.

 

sb48846_0-1721995093850.png

 

Thanks,

Suman.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.