- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
count of days if revenue = 0 / sum of days passed in the month * 100
I have two tables in data model
table one - calendar
table two - facts
I want create a measure- count of days if revenue = 0 / sum of days passed in the month * 100
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi, @jaspreet27singh
try below code it might work
if revenue is measure then try below
measure=
calculate(
count(table[date]),
filter(
facttable,[revenue]=0
)
if still not work then provide some sample data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Dangar332 ,thanks for the quick reply.
Hi @jaspreet27singh ,
The Table data is shown below:
Please follow these steps:
1. Use the following DAX expression to create a measure('DAY(TODAY())': Indicates how many days have passed in the month)
Measure = DIVIDE(
CALCULATE(COUNT(Table2[Amount]),'Table2'[Amount] = 0),
DAY(TODAY()) * 100)
2. Final output
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi, @jaspreet27singh
try below code it might work
if revenue is measure then try below
measure=
calculate(
count(table[date]),
filter(
facttable,[revenue]=0
)
if still not work then provide some sample data

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
05-06-2024 04:58 AM | |||
04-29-2024 03:37 PM | |||
Anonymous
| 07-05-2024 07:22 AM | ||
08-02-2024 04:41 AM | |||
02-15-2024 02:08 PM |
User | Count |
---|---|
24 | |
13 | |
10 | |
10 | |
8 |
User | Count |
---|---|
16 | |
15 | |
13 | |
12 | |
10 |