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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
filipkaczmarczy
New Member

Report Builder. Help me pls, it should be ready by tomorrow morning.

Hi,

My name is Filip, new Report Builder user, Poland.

I wrote a code in DAX Studio:

 

DEFINE
VAR v_PriceDate =today()-1000

MEASURE 'Price Measures'[Sale price without logistic cost] =
CALCULATE('Price Measures'[Condition Price VF],'Condition'[CON Condition International Type]="ZP01")

MEASURE 'Price Measures'[Sales price with logistic cost] =
CALCULATE('Price Measures'[Condition Price VF],'Condition'[CON Condition International Type]="ZUPR")

MEASURE 'Price Measures'[Margin] =
CALCULATE('Price Measures'[Condition Price VF],'Condition'[CON Condition International Type]="YB07")+
CALCULATE('Price Measures'[Condition Price VF],'Condition'[CON Condition International Type]="YB20")


EVALUATE

SUMMARIZECOLUMNS(
'Material'[MAT WRIN0],

FILTER(VALUES('Distributor'[DIST Country]),OR(('Distributor'[DIST Country] = @DistributorDISTCountry), ISBLANK(@DistributorDISTCountry))),
FILTER(VALUES('Material'[MAT Business ID]),OR(('Material'[MAT Business ID] = @MaterialMATBusinessID), ISBLANK(@MaterialMATBusinessID))),
FILTER ('Price Date', 'Price Date'[PRCD Date] = v_PriceDate),

"Sale price without logistic cost", 'Price Measures'[Sale price without logistic cost],
"Sales price with logistic cost", 'Price Measures'[Sales price with logistic cost],
"Reception Calculated Amount (local curr.)", 'Reception Measures'[Reception Calculated Amount (local curr.)],
"Margin", 'Price Measures'[Margin]
)

And it works there, but Report Builder shows an error when I try to implement it as new dataset.

 

Can you help me? Thank you

1 REPLY 1
filipkaczmarczy
New Member

The error message:

2023-02-20_21h11_19.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.