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.
select
InstanceId, count(DISTINCT Date)
from
Storage
where
month(date) = 12
and year(date) = 2019
and tags like '%DemoManaged%'
group by
InstanceId
Hello, I am very new to Power BI and need help to create a new measure. The Main table (Storage) has around 25-30 columns.
The table contains InstanceId which I need to display in a Power BI - Table visualization along with the count.
I am able to do it through SQL query, and I am not able to create a new Measure for the same.
Any help is highly appreciated.
Solved! Go to Solution.
Proud to be a Super User!
Hi @sirpentagon ,
We can use the following measure after put the id into the table visual to meet your requirement:
Count =
CALCULATE (
DISTINCTCOUNT ( 'Storage'[Date] ),
FILTER (
'Storage',
'Storage'[Date] >= DATE ( 2019, 12, 1 )
&& 'Storage'[Date] <= DATE ( 2019, 12, 31 )
&& CONTAINSSTRING ( 'Storage'[tags], "DemoManaged" )
)
)
Best regards,
Hi @sirpentagon ,
We can use the following measure after put the id into the table visual to meet your requirement:
Count =
CALCULATE (
DISTINCTCOUNT ( 'Storage'[Date] ),
FILTER (
'Storage',
'Storage'[Date] >= DATE ( 2019, 12, 1 )
&& 'Storage'[Date] <= DATE ( 2019, 12, 31 )
&& CONTAINSSTRING ( 'Storage'[tags], "DemoManaged" )
)
)
Best regards,
Proud to be a Super User!
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 |
---|---|
14 | |
13 | |
8 | |
8 | |
7 |
User | Count |
---|---|
17 | |
13 | |
7 | |
6 | |
6 |