Forum Discussion
Anonymous
8 years agoNot applicable
Different Statistics Based on Various Date Fields
Hi, I have a Date table and Trans table. They are connected Trans[TransDate] ->Date[Date]. I can successfully create various measures to generate stats based on the TransDate, such as total transact...
- 8 years ago
Hi Anonymous,
I made one sample for your reference. You can refer to the following steps.
1. Create the relationship between tables like this.
2. Create the measures as below.
Createcount = CALCULATE(COUNTROWS(Trans),USERELATIONSHIP('Date'[Date],Trans[ProdOrderCreateDate]))finishcount = CALCULATE(COUNTROWS(Trans),USERELATIONSHIP('Date'[Date],Trans[ProdOrderFinishDate]))Transcount = CALCULATE(COUNTROWS(Trans))
For more details, please check the pbix as attached.
Regards,
Frank
Greg_Deckler
Community Champion
8 years agoI am assuming that you want statistics on these things over something like per month, per day, per year or something like that, yes?
If so, you want to check out these two measures in the Quick Measure Gallery:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365
You will need a disconnected date dimension.