Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
cham
Post Patron
Post Patron

Tableau measure into Power BI

Hi,

 

I want to change tableau measure into Power BI,

Following is the tableau measure,

Clients = SUM(INT([ID] > 8))

 

I change that it as below in Power BI,

Clients = CALCULATE(SUM(Sheet1[ID]), FILTER(Sheet1[ID]] > 8))

 

I want to know is this correct?

1 ACCEPTED SOLUTION
mohittimpus
Helper V
Helper V

Hii @cham
This is not correct instead you can use below measure:

Clients = CALCULATE(COUNT(Sheet1[ID ]), Sheet1[ID ]>8)

 

It will return the same result as Tableau. 

For Example:

ID 
1
2
3
4
5
6
7
8
9
10
11
12
13
14

 

For the above dataset, results are as follow:

In the tableau, result is 6

when you use 

Clients=SUM(INT([ID] > 8))

 

For Power BI,

you can use below measure for the same result:

Clients = CALCULATE(COUNT(Sheet1[ID ]), Sheet1[ID ]>8)

 It will also return 6 for the above dataset.

If it help, please mark it as Accept as Solution.

 

Thanks,

mohittimpus

View solution in original post

2 REPLIES 2
mohittimpus
Helper V
Helper V

Hii @cham
This is not correct instead you can use below measure:

Clients = CALCULATE(COUNT(Sheet1[ID ]), Sheet1[ID ]>8)

 

It will return the same result as Tableau. 

For Example:

ID 
1
2
3
4
5
6
7
8
9
10
11
12
13
14

 

For the above dataset, results are as follow:

In the tableau, result is 6

when you use 

Clients=SUM(INT([ID] > 8))

 

For Power BI,

you can use below measure for the same result:

Clients = CALCULATE(COUNT(Sheet1[ID ]), Sheet1[ID ]>8)

 It will also return 6 for the above dataset.

If it help, please mark it as Accept as Solution.

 

Thanks,

mohittimpus

Thank you so much

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.