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

count state evolution by date

Hi,

Firstly, sorry for my english.

 

We want to restitute the number of document on each status by date.

My fact table likes :

usersDate eventType event
101/03/2020Sended
104/03/2020Recevied
106/03/2020Integrated
106/03/2020Finished
201/03/2020Sended
203/03/2020Received
302/03/2020Sended
310/03/2020Received
311/03/2020Integrated
315/03/2020Finished
405/03/2020Sended
406/03/2020Received
407/03/2020Integrated

The workflow document is : Sended, received, integrated and finished

i have 3 dimensions : date, user et type event. 

 

On each date, i want to know the stock on each type event :

Type events01/03/202002/03/202003/03/202004/03/202005/03/202006/03/202007/03/202008/03/202009/03/202010/03/202011/03/202012/03/202013/03/202014/03/202015/03/2020
Sended232121111000000
Received001222111211111
Integrated000000111122221
Finish000001111111112

 

I want to create a measure but i don't know the dax syntax which can do it.

 

Thanks for your helps

 

3 REPLIES 3
az38
Community Champion
Community Champion

Hi @gringo89 

you dont need DAX for this task

just place fields in the visual as shown below

Снимок.PNG

pay attention - values is Count (Distinct)

pbix-file is attached


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Hi,

 

thanks for your helps!

This approch can't solve my need. in fact, the 2 march my stock on "sended" type event would be 3 😞

 

Anonymous
Not applicable

Hi @gringo89 ,

 

Try creating a matrix visual with Type of Event as Rows, Dates as column and USers as Values.

 

You should be able to get your desired output.

 

Cheers

 

CheeenuSing

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.