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
Anonymous
Not applicable

Dynamic Column according to date selected

Hello guys,

 

I'm trying to calculate the amount of orders grouping by status in the selected date. I have a fact Sales, Calendar and a fact Historical Sales


fSales

id_ordersales date
ab12301/01/19
ab12402/01/19
ab12502/01/19
ab12603/01/19

fHistoricalSales

id_OrderDT_StatusStatus
ab12301/01/19NOR
ab12315/01/19CAN
ab12402/01/19NOR
ab12413/01/19CAN
ab12503/01/19NOR
ab12514/01/19CAN
ab12520/01/19REC
ab12605/01/19NOR

 

I can count the Id orders if I get the last status order like following image. 

Picture1.PNG

 

But I'd like when I select the range date like from 01/01/2019 to 13/01/2019 I get the status the orders were in that time, not the last status, like this:

 

Picture2.PNG

 

Thanks!

 

 

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Why the count value of 01/JAN with NOR is 1? Isn't it 2? Could you share more logic of the matrix chart?

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors