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
Hoai_Khang1205
New Member

DAX

Hey, does any one know how to make a DAX calculation like this pic right here?. Thank you very much. Given dataset has code_id and places

Hoai_Khang1205_0-1664377143874.png

 

3 REPLIES 3
Arul
Super User
Super User

@Hoai_Khang1205 ,

try this,

Formula = IF(OR(inv quarter t-1 = 0,inv quarter t = 0),0,inv quarter t-inv quarter t-1)

Thanks,





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


um. Im not sure if you understand my question correctly? but thanks btw. This is not the solution I need though.

Hi, @Hoai_Khang1205 

Not sure what you  want.

Can you explain what the formula means?

Best Regards,
Community Support Team _ Eason

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.