Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All,
Tricky problem
I am trying to create a daily average for IAA Amount
The problem is that I don't really have 31 days in the data but I have the number 31, Only in one row under column "Prev_Month_Days"
Can I say in the formula that if there is the number 31 in the row or 28 then divide by that number?
Thanks!
Solved! Go to Solution.
Hi,
Please try writing the below measure and put it into the same visualization whether it suits your requirement.
AVG IAA =
DIVIDE( [IAA 40_BT40002 Revenues_Ads], SELECTEDVALUE( Dim_Time[Current_Month_Days]) )
Hi,
I am not sure if I understood your question correctly, but please try using CONVERT function in order to convert text type to number type in a measure.
Thanks.
@Jihwan_Kim Thanks for the response
I fix the question
The problem is not in text or number format
The problem is dividing by 31 or 28 depending on what is written in the "Prev_Month_Days" column
Hi,
Thank you for your feedback.
Sorry that it is difficult for me to know how the column [Prev_Month_Days] looks like.
Could you please share the sample pbix file with how the expected numbers look like?
I tried to make it as clear as possible, thanks!
Here you have the simple file:
https://1drv.ms/f/s!AonyYI-TdspHgUhwngZ6OKvpnSsc
Hi,
Please try writing the below measure and put it into the same visualization whether it suits your requirement.
AVG IAA =
DIVIDE( [IAA 40_BT40002 Revenues_Ads], SELECTEDVALUE( Dim_Time[Current_Month_Days]) )
Oh man how did I not think of that
So simple so good
Thanks!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |