Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Calculate ( countrows( Regions), Sales)) . Here Regions is part of the expanded table of Sales. Can someone explain how the table "Sales" as calculate argument is used to evaluate the expression. The Regions[Regions] column part of the expanded "sales" table.
Solved! Go to Solution.
Hi ,
Based on the information, the countrows(Regions) function counts the number of rows in the Regions table. Because CALCULATE adjusts the filter context using the Sales table, only those Regions that are linked to the current set of rows in Sales are considered.
Using the DAX formula.
You can view the following documents to learn more information.
CALCULATE function (DAX) - DAX | Microsoft Learn
COUNTROWS function (DAX) - DAX | Microsoft Learn
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi ,
Based on the information, the countrows(Regions) function counts the number of rows in the Regions table. Because CALCULATE adjusts the filter context using the Sales table, only those Regions that are linked to the current set of rows in Sales are considered.
Using the DAX formula.
You can view the following documents to learn more information.
CALCULATE function (DAX) - DAX | Microsoft Learn
COUNTROWS function (DAX) - DAX | Microsoft Learn
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Cyriackpazhe in Power BI with Star schema model, Sales table is fact table and via relationships other tables are expaned table of Sales, some of details on link.
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
12 | |
11 | |
10 | |
9 |
User | Count |
---|---|
18 | |
14 | |
14 | |
13 | |
12 |