Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone,
Can someone help with my formula.
I am trying to calculate a daily rolling average / period (month divided into two) and which will exlude non-trading days.
The following formula works but I want the daily average wihch is based on the number of trading days in each period For each day, I have got a column using 1 / 0 if it is a trading / non trading day.
My formula is like that at the moment but I dont know how to go about removing non trading days:
Solved! Go to Solution.
In your have the trading date
Trading Date = if('Calendar'[TradingDay]=1,Calendar'[Period]), blank())
Now use distinctcount of trading Date. Power bi may count blank as one additional so reduce it from the distinct count
In your have the trading date
Trading Date = if('Calendar'[TradingDay]=1,Calendar'[Period]), blank())
Now use distinctcount of trading Date. Power bi may count blank as one additional so reduce it from the distinct count
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |