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
Volvo_Chang
Helper I
Helper I

Measure

Hello Team,

I have net cases number pulled from daily invoice database. I want to show the net cases in the table as the table1 below based on the date range. However, I have used the measure as below but get the net cases combined instead of row by row. Can you please help me how to adjust my measure to get it to work? Thanks.

NetCases = calculate(sum('summary InvoiceDCByDay'[NetCases]),filter('Pricing',average('summary InvoiceDCByDay'[InvoiceDate])>=Pricing[Valid After] && average('summary InvoiceDCByDay'[InvoiceDate])<=Pricing[Valid Before]))

 

Net Cases

Price Start Date

Price End Date

100

4/1/2019

5/1/2019

108

5/1/2019

6/1/2019

5

6/1/2019

7/1/2019

 

 

This one below is what it look like in my table, after the measure I enter:

Adjusted CasesPrice Start DatePrice End Date
 4/1/20195/1/2019
2135/1/20196/1/2019
 6/1/20197/1/2019
0 REPLIES 0

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.