The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi there,
I have a dax measure which looks like as follow:
I wanted to convert the above dax measure into a facttable column using Power Query lanugage. I could not figure out how should I calculate the difference between two dates by exluding few conditions (such as weekends) in power query. Any help would be really appreciated
Hi, @Dunner2020
If possible ,please share your tables ( 'FactTable' and 'Dates') or sample pbix file (enter data) for testing.
Best Regards,
Community Support Team _ Eason
It is fundamentally impossible to convert a measure into a column, regardless if Power Query or not. Measures are impacted by user interactions, columns are immutable.
If your "No days notice given directly to consumers " calculation does not depend on user interaction then you can recreate it as a column in DAX with only some minor code changes. What is your rationale for wanting this in Power Query?
Yes, "No days notice given directly to consumers " does not depend upon user interaction. I was calling this measure into many measures and it is causing a lot of delays, converting into a column would (hopefully) reduce the computational time.
User | Count |
---|---|
69 | |
69 | |
66 | |
54 | |
28 |
User | Count |
---|---|
112 | |
82 | |
66 | |
48 | |
43 |