Forum Discussion
Index Direct Query
What are you trying to achieve with that index? Can you add the index in the SQL source?
- Saxon103 years agoPost Prodigy
Thanks for your reply. I am trying to countif and countifs based on the index column. Please refer the snapshot
ā
I am using the following formula in Excel COUNTIF($A$2:$A2,A2) and COUNTIFS($A2:$A2,A2,$B$2:$B2,B2). I like to apply the same login in power bi but unable to achieve without index column.
Is that's anyway I can apply the above mentioned formula in power bi without index column?
I am unable to add index in SQL source.
Can you assist me.
- lbendlin3 years agoSuper User
There are many ways to do that - in Power Query you can do grouping with group type local, or in Power BI you can use the new windowsing functions INDEX/OFFSET etc.
Please provide sample data that covers your issue or question completely.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523